Add support for 32bit indices under ogl-es. Needs a backup handling in case the extension is missing.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@2385 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2009-05-10 23:25:22 +00:00
parent 36c3956acd
commit 19c9fadeed
1 changed files with 5 additions and 1 deletions

View File

@ -953,7 +953,11 @@ void COGLES1Driver::drawVertexPrimitiveList2d3d(const void* vertices, u32 vertex
}
case (EIT_32BIT):
{
// TODO ogl-es
#ifdef GL_OES_element_index_uint
if (FeatureAvailable[IRR_OES_element_index_uint])
indexSize=GL_UNSIGNED_INT;
else
#endif
indexSize=GL_UNSIGNED_SHORT;
break;
}