diff options
author | RALOVICH, Kristóf <[email protected]> | 2008-11-04 11:31:53 +0100 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-11-26 10:02:11 -0700 |
commit | 6d1d1576062e569fe1d372f44ba3f646c21ae1c3 (patch) | |
tree | 6612d61841ebf60b515175b645f2b10d9224d03e /src/glx/x11/glx_query.c | |
parent | 9c7aaa7afbda92587f28cc28c4c8315e7861d318 (diff) |
glx: no graphics context during initialization
Diffstat (limited to 'src/glx/x11/glx_query.c')
-rw-r--r-- | src/glx/x11/glx_query.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/glx/x11/glx_query.c b/src/glx/x11/glx_query.c index 01911e2a3a9..2789b841b1b 100644 --- a/src/glx/x11/glx_query.c +++ b/src/glx/x11/glx_query.c @@ -44,6 +44,7 @@ */ char * __glXQueryServerString(Display* dpy, + int opcode, CARD32 screen, CARD32 name) { @@ -70,6 +71,7 @@ __glXQueryServerString(Display* dpy, */ char * __glXGetString(Display* dpy, + int opcode, CARD32 contextTag, CARD32 name) { @@ -166,22 +168,22 @@ __glXGetStringFromServer(Display * dpy, int opcode, CARD32 glxCode, char * __glXQueryServerString(Display* dpy, + int opcode, CARD32 screen, CARD32 name) { - GLXContext gc = __glXGetCurrentContext(); - return __glXGetStringFromServer(dpy, gc->majorOpcode, + return __glXGetStringFromServer(dpy, opcode, X_GLXQueryServerString, screen, name); } char * __glXGetString(Display* dpy, + int opcode, CARD32 contextTag, CARD32 name) { - GLXContext gc = __glXGetCurrentContext(); - return __glXGetStringFromServer(dpy, gc->majorOpcode, X_GLsop_GetString, + return __glXGetStringFromServer(dpy, opcode, X_GLsop_GetString, contextTag, name); } |