Fix FBO related queries with OGL3.2+
This commit is contained in:
parent
5918f43ce6
commit
f880d13175
@ -142,6 +142,8 @@ namespace video
|
||||
//! queries the features of the driver, returns true if feature is available
|
||||
virtual bool queryFeature(E_VIDEO_DRIVER_FEATURE feature) const
|
||||
{
|
||||
if (feature == EVDF_FRAMEBUFFER_OBJECT)
|
||||
return true;
|
||||
return FeatureEnabled[feature] && COpenGLExtensionHandler::queryFeature(feature);
|
||||
}
|
||||
|
||||
|
@ -930,6 +930,8 @@ class COpenGLExtensionHandler
|
||||
//! queries the features of the driver, returns true if feature is available
|
||||
bool queryOpenGLFeature(EOpenGLFeatures feature) const
|
||||
{
|
||||
if (COpenGLExtensionHandler::IRR_EXT_packed_depth_stencil)
|
||||
return true;
|
||||
return FeatureAvailable[feature];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user