mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix GLX fetching backbuffer samplecount wrongly
This commit is contained in:
@@ -107,7 +107,7 @@ HOOK_EXPORT GLXContext glXCreateContext(Display *dpy, XVisualInfo *vis, GLXConte
|
||||
init.isSRGB = value;
|
||||
value = 1;
|
||||
GLX.glXGetConfig(dpy, vis, GLX_SAMPLES_ARB, &value);
|
||||
init.isSRGB = RDCMAX(1, value);
|
||||
init.multiSamples = RDCMAX(1, value);
|
||||
|
||||
GLWindowingData data;
|
||||
data.dpy = dpy;
|
||||
@@ -248,7 +248,7 @@ HOOK_EXPORT GLXContext glXCreateContextAttribsARB(Display *dpy, GLXFBConfig conf
|
||||
init.isSRGB = value;
|
||||
value = 1;
|
||||
GLX.glXGetConfig(dpy, vis, GLX_SAMPLES_ARB, &value);
|
||||
init.isSRGB = RDCMAX(1, value);
|
||||
init.multiSamples = RDCMAX(1, value);
|
||||
|
||||
GLWindowingData data;
|
||||
data.dpy = dpy;
|
||||
|
||||
Reference in New Issue
Block a user