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-e03cc46cb475master
parent
36c3956acd
commit
19c9fadeed
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue