Commit e8b042f2 authored by bitplane's avatar bitplane

OpenGL extension handler bug reported by Nadro

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@881 dfc29bdd-3216-0410-991c-e03cc46cb475
parent cf288403
...@@ -91,7 +91,7 @@ void COpenGLExtensionHandler::initExtensions(bool stencilBuffer) ...@@ -91,7 +91,7 @@ void COpenGLExtensionHandler::initExtensions(bool stencilBuffer)
if (str[i] == ' ') if (str[i] == ' ')
{ {
str[i] = 0; str[i] = 0;
for (u32 i=0; i<IRR_OpenGL_Feature_Count; ++i) for (s32 i=IRR_OpenGL_Feature_Count-1; i>0; --i)
{ {
if (strstr(p, OpenGLFeatureStrings[i])) if (strstr(p, OpenGLFeatureStrings[i]))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment