mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Drop use of CONTEXT_FORWARD_COMPATIBLE_BIT, add CORE_PROFILE_BIT
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user