diff options
author | Adam Jackson <[email protected]> | 2019-08-20 15:47:22 -0400 |
---|---|---|
committer | Adam Jackson <[email protected]> | 2019-08-22 13:29:06 -0400 |
commit | a7a9d958bc334b65fff1a7b209c2b865e0ad04b1 (patch) | |
tree | 5e3b97be0152d1ce9375b46c19f16dfc3bf03891 /src | |
parent | 3dd299c3d5b88114894ec30d1fac85fba688201f (diff) |
glx: Make __glXGetDrawableAttribute return true sometimes
Right now it always returns zero, but as of:
commit a48a6b8a400e6e92961cf7b7b4c287e8e9875f39
Author: Adam Jackson <[email protected]>
Date: Tue Nov 14 15:13:05 2017 -0500
glx: Prepare driFetchDrawable for no-config contexts
We were hoping it would return true if the drawable could actually be
looked up. It wasn't, so that didn't go very well. With the most recent
update to <GL/glxext.h> glXQueryGLXPbufferSGIX (correctly) returns void,
so there's no longer anything else besides driFetchDrawable that depends
on the return value from __glXGetDrawableAttribute.
Acked-by: Eric Engestrom <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glx/glx_pbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/glx_pbuffer.c b/src/glx/glx_pbuffer.c index 6bdb6354f45..515099aa0d8 100644 --- a/src/glx/glx_pbuffer.c +++ b/src/glx/glx_pbuffer.c @@ -414,7 +414,7 @@ __glXGetDrawableAttribute(Display * dpy, GLXDrawable drawable, UnlockDisplay(dpy); SyncHandle(); - return 0; + return 1; } static void |