mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Disable LOD emulation on GLES2 devices that can't support it
This commit is contained in:
parent
7d47207d34
commit
d87ad2c3d6
|
@ -415,8 +415,10 @@ public:
|
|||
{
|
||||
if (_glinfo.isGLES2) {
|
||||
m_part = "#version 100 \n";
|
||||
m_part += "#extension GL_EXT_shader_texture_lod : enable \n";
|
||||
m_part += "#extension GL_OES_standard_derivatives : enable \n";
|
||||
if (config.generalEmulation.enableLOD) {
|
||||
m_part += "#extension GL_EXT_shader_texture_lod : enable \n";
|
||||
m_part += "#extension GL_OES_standard_derivatives : enable \n";
|
||||
}
|
||||
m_part +=
|
||||
"#if (__VERSION__ > 120) \n"
|
||||
"# define IN in \n"
|
||||
|
|
|
@ -75,4 +75,10 @@ void GLInfo::init() {
|
|||
LOG(LOG_WARNING, "Async color buffer copies are not supported on GLES2\n");
|
||||
}
|
||||
#endif
|
||||
if (isGLES2 && config.generalEmulation.enableLOD) {
|
||||
if (!Utils::isExtensionSupported(*this, "GL_EXT_shader_texture_lod") || !Utils::isExtensionSupported(*this, "GL_OES_standard_derivatives")) {
|
||||
config.generalEmulation.enableLOD = 0;
|
||||
LOG(LOG_WARNING, "LOD emulation not possible on this device\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user