forked from Mirrorlandia_minetest/irrlicht
OpenGL3: ExtensionHandler::initExtensionsNew: use GetInteger
This commit is contained in:
parent
efb660e7ed
commit
8cf02ea27f
@ -29,8 +29,7 @@ namespace video
|
||||
|
||||
void COpenGL3ExtensionHandler::initExtensionsNew()
|
||||
{
|
||||
GLint ext_count = 0;
|
||||
GL.GetIntegerv(GL_NUM_EXTENSIONS, &ext_count);
|
||||
int ext_count = GetInteger(GL_NUM_EXTENSIONS);
|
||||
for (int k = 0; k < ext_count; k++)
|
||||
addExtension(reinterpret_cast<const char *>(GL.GetStringi(GL_EXTENSIONS, k)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user