OGL32CTX: Create a GL 3.1 context on windows (backward compatible)

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14972 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
vincentlj 2014-01-08 21:50:46 +00:00
parent 53e32a9848
commit 632f75c130

View File

@ -338,7 +338,9 @@ bool COpenGLDriver::initDriver(CIrrDeviceWin32* device)
else
#endif
AntiAlias=0;
#ifdef WGL_ARB_create_context
PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribs_ARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)wglGetProcAddress("wglCreateContextAttribsARB");
#endif
wglMakeCurrent(HDc, NULL);
wglDeleteContext(hrc);
ReleaseDC(temporary_wnd, HDc);
@ -405,7 +407,6 @@ bool COpenGLDriver::initDriver(CIrrDeviceWin32* device)
// create rendering context
#ifdef WGL_ARB_create_context
PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribs_ARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)wglGetProcAddress("wglCreateContextAttribsARB");
if (wglCreateContextAttribs_ARB)
{
int iAttribs[] =