From 6a782e8c3141cf26dcda14b43f0946ec6fd1f3b7 Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 1 Aug 2015 19:13:45 +0200 Subject: [PATCH] Avoid accidentally getting a non-compat context on Windows Catalyst driver --- panda/src/wgldisplay/wglGraphicsStateGuardian.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/wgldisplay/wglGraphicsStateGuardian.cxx b/panda/src/wgldisplay/wglGraphicsStateGuardian.cxx index 236ab57a77..b4b9f5f157 100644 --- a/panda/src/wgldisplay/wglGraphicsStateGuardian.cxx +++ b/panda/src/wgldisplay/wglGraphicsStateGuardian.cxx @@ -644,8 +644,10 @@ make_context(HDC hdc) { attrib_list[n++] = WGL_CONTEXT_FLAGS_ARB; attrib_list[n++] = WGL_CONTEXT_DEBUG_BIT_ARB; } +#ifndef SUPPORT_FIXED_FUNCTION attrib_list[n++] = WGL_CONTEXT_PROFILE_MASK_ARB; attrib_list[n++] = WGL_CONTEXT_CORE_PROFILE_BIT_ARB; +#endif attrib_list[n] = NULL; _context = _wglCreateContextAttribsARB(hdc, 0, attrib_list);