From 632f75c1305f568be64115eedb767a9f36d240b9 Mon Sep 17 00:00:00 2001 From: vincentlj Date: Wed, 8 Jan 2014 21:50:46 +0000 Subject: [PATCH] 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 --- lib/irrlicht/source/Irrlicht/COpenGLDriver.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/irrlicht/source/Irrlicht/COpenGLDriver.cpp b/lib/irrlicht/source/Irrlicht/COpenGLDriver.cpp index 938dfc5f8..aec005fef 100644 --- a/lib/irrlicht/source/Irrlicht/COpenGLDriver.cpp +++ b/lib/irrlicht/source/Irrlicht/COpenGLDriver.cpp @@ -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[] =