Implemented crude work around for drivers that do not support

opengl 3.3.
This commit is contained in:
hiker 2014-02-17 16:52:40 +11:00
parent b313c680fc
commit 2595d31eba

View File

@ -417,8 +417,15 @@ bool COpenGLDriver::initDriver(CIrrDeviceWin32* device)
WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB, //WGL_CONTEXT_CORE_PROFILE_BIT_ARB
0
};
hrc=wglCreateContextAttribs_ARB(HDc, 0, iAttribs);
}
// hd3000 only provides 3.1, so try all minor versions backwards, to find one that works.
for (int minor = 3; minor >= 0; minor--)
{
iAttribs[3] = minor;
hrc = wglCreateContextAttribs_ARB(HDc, 0, iAttribs);
if (hrc)
break;
}
}
else
#endif
hrc=wglCreateContext(HDc);