mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Remove need for USE_DEPTH_RENDERBUFFER
This commit is contained in:
parent
cd17543447
commit
4456d43daf
|
@ -92,7 +92,6 @@ if(EXISTS "/opt/vc/include/bcm_host.h")
|
|||
set(EGL ON)
|
||||
add_definitions(
|
||||
-DVC
|
||||
-DUSE_DEPTH_RENDERBUFFER
|
||||
)
|
||||
include_directories(
|
||||
"/opt/vc/include"
|
||||
|
|
|
@ -363,13 +363,13 @@ protected:
|
|||
monochromeType = GL_UNSIGNED_SHORT_5_6_5;
|
||||
monochromeFormatBytes = 2;
|
||||
|
||||
#ifndef USE_DEPTH_RENDERBUFFER
|
||||
depthInternalFormat = GL_DEPTH_COMPONENT;
|
||||
depthFormatBytes = 4;
|
||||
#else
|
||||
depthInternalFormat = GL_DEPTH_COMPONENT16;
|
||||
depthFormatBytes = 2;
|
||||
#endif
|
||||
if (Utils::isExtensionSupported("GL_OES_depth_texture")) {
|
||||
depthInternalFormat = GL_DEPTH_COMPONENT;
|
||||
depthFormatBytes = 4;
|
||||
} else {
|
||||
depthInternalFormat = GL_DEPTH_COMPONENT16;
|
||||
depthFormatBytes = 2;
|
||||
}
|
||||
|
||||
depthFormat = GL_DEPTH_COMPONENT;
|
||||
depthType = GL_UNSIGNED_INT;
|
||||
|
|
|
@ -399,11 +399,10 @@ bool ContextImpl::isSupported(graphics::SpecialFeatures _feature) const
|
|||
return numBinaryFormats != 0 && Utils::isExtensionSupported("GL_ARB_get_program_binary");
|
||||
}
|
||||
case graphics::SpecialFeatures::DepthFramebufferTextures:
|
||||
#ifndef USE_DEPTH_RENDERBUFFER
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
if (!m_glInfo.isGLES2 || Utils::isExtensionSupported("GL_OES_depth_texture"))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user