Fix compiling es2 driver on platforms without GL_EXT_texture_rg.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@5526 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2017-08-23 13:03:36 +00:00
parent 62ac2fd2e1
commit e4b8e7210f
1 changed files with 2 additions and 0 deletions

View File

@ -2809,6 +2809,7 @@ COGLES2Driver::~COGLES2Driver()
os::Printer::log("ECF_D24S8 color format is not supported", ELL_ERROR);
break;
case ECF_R8:
#if defined(GL_EXT_texture_rg)
if (queryOpenGLFeature(COGLESCoreExtensionHandler::IRR_GL_EXT_texture_rg))
{
supported = true;
@ -2816,6 +2817,7 @@ COGLES2Driver::~COGLES2Driver()
pixelType = GL_UNSIGNED_BYTE;
}
else
#endif
os::Printer::log("ECF_R8 color format is not supported", ELL_ERROR);
break;
case ECF_R8G8: