summaryrefslogtreecommitdiff
path: root/src/glx/glxcmds.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-06-26 13:38:18 -0600
committerBrian Paul <brianp@vmware.com>2013-06-27 07:48:18 -0600
commitd171bc9d19a85eea56fcc34c2bd616cc264aa484 (patch)
tree304b0497be649cdbb06b716026b0d26b62974977 /src/glx/glxcmds.c
parentd43548ca370f2653ad0a103596d5dcfcb20683dd (diff)
glx: move declarations before code
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/glx/glxcmds.c')
-rw-r--r--src/glx/glxcmds.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index 5c79073a9c..224e402c8c 100644
--- a/src/glx/glxcmds.c
+++ b/src/glx/glxcmds.c
@@ -575,20 +575,19 @@ static Bool
__glXIsDirect(Display * dpy, GLXContextID contextID)
{
CARD8 opcode;
+ xcb_connection_t *c;
+ xcb_generic_error_t *err;
+ xcb_glx_is_direct_reply_t *reply;
+ Bool is_direct;
opcode = __glXSetupForCommand(dpy);
if (!opcode) {
return GL_FALSE;
}
- xcb_connection_t *c = XGetXCBConnection(dpy);
- xcb_generic_error_t *err;
- xcb_glx_is_direct_reply_t *reply = xcb_glx_is_direct_reply(c,
- xcb_glx_is_direct
- (c, contextID),
- &err);
-
- const Bool is_direct = (reply != NULL && reply->is_direct) ? True : False;
+ c = XGetXCBConnection(dpy);
+ reply = xcb_glx_is_direct_reply(c, xcb_glx_is_direct(c, contextID), &err);
+ is_direct = (reply != NULL && reply->is_direct) ? True : False;
if (err != NULL) {
__glXSendErrorForXcb(dpy, err);