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()
|
void COpenGL3ExtensionHandler::initExtensionsNew()
|
||||||
{
|
{
|
||||||
GLint ext_count = 0;
|
int ext_count = GetInteger(GL_NUM_EXTENSIONS);
|
||||||
GL.GetIntegerv(GL_NUM_EXTENSIONS, &ext_count);
|
|
||||||
for (int k = 0; k < ext_count; k++)
|
for (int k = 0; k < ext_count; k++)
|
||||||
addExtension(reinterpret_cast<const char *>(GL.GetStringi(GL_EXTENSIONS, k)));
|
addExtension(reinterpret_cast<const char *>(GL.GetStringi(GL_EXTENSIONS, k)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user