forked from Mirrorlandia_minetest/irrlicht
Fix problem with glGenerateMipMap in GLES2
Thanks @wolfgang for report and patch: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52625 git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6112 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
2ae2a551a6
commit
3e26f3d7a9
@ -434,7 +434,9 @@ public:
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef IRR_OPENGL_HAS_glGenerateMipmap
|
#ifdef IRR_OPENGL_HAS_glGenerateMipmap
|
||||||
|
#if !defined(IRR_COMPILE_GLES2_COMMON)
|
||||||
glEnable(GL_TEXTURE_2D); // Hack some ATI cards need this glEnable according to https://www.khronos.org/opengl/wiki/Common_Mistakes
|
glEnable(GL_TEXTURE_2D); // Hack some ATI cards need this glEnable according to https://www.khronos.org/opengl/wiki/Common_Mistakes
|
||||||
|
#endif
|
||||||
Driver->irrGlGenerateMipmap(TextureType);
|
Driver->irrGlGenerateMipmap(TextureType);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user