Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
GRIM: use GL_UNSIGNED_SHORT for glDrawElements instead of GL_UNSIGNED… #2617
When running with an OpenGL ES 2 library (not above), glDrawElements(GL_TRIANGLES,3 * face->_faceLength, GL_UNSIGNED_INT, 0) of drawEMIModelFace() (gfx_opengl_shaders.cpp) exits with error code GL_INVALID_ENUM.
Indeed, GLES v2 doesn't support GL_UNSIGNED_INT (only BYTE and SHORT).
This modification converts GL_UNSIGNED_INT to GL_UNSIGNED_SHORT.
The same modification should also be done for Stark engine ... not for Myst3 and Wintermute.
This merge has initially been proposed on ResidualVM project.