diff options
author | Brian Paul <[email protected]> | 2017-05-22 11:46:27 -0600 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-06-14 10:40:22 +0100 |
commit | 6348a02e275c44164029070c717aa623120a0ad0 (patch) | |
tree | fb8403c5012228fe0109af05edb488c43cde8a41 /src/mesa/drivers/x11/glxapi.h | |
parent | c24bdf046e4608a1d372e27446d4a7e87b5458c3 (diff) |
xlib: fix glXGetCurrentDisplay() failure
glXGetCurrentDisplay() has been broken for years and nobody noticed until
recently. This change adds a new XMesaGetCurrentDisplay() that the GLX
emulation API can call, just as we did for glXGetCurrentContext().
Tested by hacking glxgears to call glXGetCurrentContext() before and
after glXMakeCurrent() to verify the return value is NULL beforehand and
the same as the opened display afterward.
Also tested by Tom Hudson with his tests programs.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100988
Cc: [email protected]
Tested-by: Tom Hudson <[email protected]>
Signed-off-by: Brian Paul <[email protected]>
(cherry picked from commit c6ba85a8c0f02b3b7058dae7afb6c49f56567319)
Diffstat (limited to 'src/mesa/drivers/x11/glxapi.h')
-rw-r--r-- | src/mesa/drivers/x11/glxapi.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/glxapi.h b/src/mesa/drivers/x11/glxapi.h index aff38f7531d..cc4f902925b 100644 --- a/src/mesa/drivers/x11/glxapi.h +++ b/src/mesa/drivers/x11/glxapi.h @@ -37,7 +37,6 @@ * work properly. */ typedef struct __GLXcontextRec { - Display *currentDpy; GLboolean isDirect; GLXDrawable currentDrawable; GLXDrawable currentReadable; |