mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-10 12:20:37 +01:00
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