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
master
bitplane 2007-08-30 03:07:56 +00:00
parent cf288403b3
commit e8b042f29e
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ void COpenGLExtensionHandler::initExtensions(bool stencilBuffer)
if (str[i] == ' ')
{
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]))
{