OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glx: fix error code when there is no context bound
[android-x86/external-mesa.git]
/
src
/
glx
/
glx_pbuffer.c
diff --git
a/src/glx/glx_pbuffer.c
b/src/glx/glx_pbuffer.c
index
a0c1e3d
..
24c073c
100644
(file)
--- a/
src/glx/glx_pbuffer.c
+++ b/
src/glx/glx_pbuffer.c
@@
-328,7
+328,7
@@
GetDrawableAttribute(Display * dpy, GLXDrawable drawable,
* the calling thread's current context a GLXBadDrawable error is
* generated."
*/
* the calling thread's current context a GLXBadDrawable error is
* generated."
*/
- if (pdraw == NULL || gc ==
NULL
|| gc->currentDpy != dpy ||
+ if (pdraw == NULL || gc ==
&dummyContext
|| gc->currentDpy != dpy ||
(gc->currentDrawable != drawable &&
gc->currentReadable != drawable)) {
__glXSendError(dpy, GLXBadDrawable, drawable,
(gc->currentDrawable != drawable &&
gc->currentReadable != drawable)) {
__glXSendError(dpy, GLXBadDrawable, drawable,