Drop use of CONTEXT_FORWARD_COMPATIBLE_BIT, add CORE_PROFILE_BIT

This commit is contained in:
baldurk
2014-12-11 22:41:11 +00:00
parent 12af78d535
commit 5fe0354ce4
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -119,7 +119,7 @@ uint64_t GLReplay::MakeOutputWindow(void *wn, bool depth)
attribs[i++] = GLX_CONTEXT_MINOR_VERSION_ARB;
attribs[i++] = 3;
attribs[i++] = GLX_CONTEXT_FLAGS_ARB;
attribs[i++] = GLX_CONTEXT_DEBUG_BIT_ARB;
attribs[i++] = GLX_CONTEXT_CORE_PROFILE_BIT_ARB|GLX_CONTEXT_DEBUG_BIT_ARB;
GLXContext ctx = glXCreateContextAttribsProc(dpy, fbcfg[0], m_ReplayCtx.ctx, true, attribs);
@@ -249,7 +249,7 @@ ReplayCreateStatus GL_CreateReplayDevice(const char *logfile, IReplayDriver **dr
attribs[i++] = GLX_CONTEXT_MINOR_VERSION_ARB;
attribs[i++] = 3;
attribs[i++] = GLX_CONTEXT_FLAGS_ARB;
attribs[i++] = GLX_CONTEXT_DEBUG_BIT_ARB;
attribs[i++] = GLX_CONTEXT_CORE_PROFILE_BIT_ARB|GLX_CONTEXT_DEBUG_BIT_ARB;
Display *dpy = XOpenDisplay(NULL);
+2 -2
View File
@@ -159,7 +159,7 @@ uint64_t GLReplay::MakeOutputWindow(void *wn, bool depth)
attribs[i++] = WGL_CONTEXT_MINOR_VERSION_ARB;
attribs[i++] = 3;
attribs[i++] = WGL_CONTEXT_FLAGS_ARB;
attribs[i++] = WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB|WGL_CONTEXT_DEBUG_BIT_ARB;
attribs[i++] = WGL_CONTEXT_CORE_PROFILE_BIT_ARB|WGL_CONTEXT_DEBUG_BIT_ARB;
HGLRC rc = createContextAttribs(DC, m_ReplayCtx.ctx, attribs);
if(rc == NULL)
@@ -375,7 +375,7 @@ ReplayCreateStatus GL_CreateReplayDevice(const char *logfile, IReplayDriver **dr
attribs[i++] = WGL_CONTEXT_MINOR_VERSION_ARB;
attribs[i++] = 3;
attribs[i++] = WGL_CONTEXT_FLAGS_ARB;
attribs[i++] = WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB|WGL_CONTEXT_DEBUG_BIT_ARB;
attribs[i++] = WGL_CONTEXT_CORE_PROFILE_BIT_ARB|WGL_CONTEXT_DEBUG_BIT_ARB;
rc = createContextAttribs(dc, NULL, attribs);
if(rc == NULL)
+1 -1
View File
@@ -310,7 +310,7 @@ class OpenGLHook : LibraryHook
GLX_CONTEXT_MINOR_VERSION_ARB,
2,
GLX_CONTEXT_FLAGS_ARB,
0,
GLX_CONTEXT_CORE_PROFILE_BIT_ARB,
0, 0,
};
+1 -1
View File
@@ -270,7 +270,7 @@ class OpenGLHook : LibraryHook
WGL_CONTEXT_MINOR_VERSION_ARB,
2,
WGL_CONTEXT_FLAGS_ARB,
0,
WGL_CONTEXT_CORE_PROFILE_BIT_ARB,
0, 0,
};
ret.DC = share.DC;