OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7284b4
)
glx: Move dereference and initialization to after NULL check.
author
Vinson Lee
<vlee@vmware.com>
Thu, 15 Jul 2010 07:20:41 +0000
(
00:20
-0700)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 15 Jul 2010 07:20:41 +0000
(
00:20
-0700)
src/glx/glx_pbuffer.c
patch
|
blob
|
history
diff --git
a/src/glx/glx_pbuffer.c
b/src/glx/glx_pbuffer.c
index
c081836
..
f6f931d
100644
(file)
--- a/
src/glx/glx_pbuffer.c
+++ b/
src/glx/glx_pbuffer.c
@@
-86,7
+86,7
@@
ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable,
const CARD32 * attribs, size_t num_attribs)
{
__GLXdisplayPrivate *priv = __glXInitialize(dpy);
- __GLXDRIdrawable *pdraw
= GetGLXDRIDrawable(dpy, drawable, NULL)
;
+ __GLXDRIdrawable *pdraw;
CARD32 *output;
CARD8 opcode;
int i;
@@
-95,6
+95,8
@@
ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable,
return;
}
+ pdraw = GetGLXDRIDrawable(dpy, drawable, NULL);
+
opcode = __glXSetupForCommand(dpy);
if (!opcode)
return;