Coverity #986: Prevent a NULL chase.
This commit is contained in:
parent
07ecf49521
commit
c03cfca380
|
@ -1,3 +1,8 @@
|
|||
2006-04-02 Adam Jackson <ajax@freedesktop.org>
|
||||
|
||||
* GL/glx/glxcmds.c:
|
||||
Coverity #986: Prevent a NULL chase.
|
||||
|
||||
2006-04-02 Adam Jackson <ajax@freedesktop.org>
|
||||
|
||||
* Xext/sync.c:
|
||||
|
|
|
@ -1926,10 +1926,10 @@ static int __glXBindSwapBarrierSGIX(__GLXclientState *cl, GLbyte *pc)
|
|||
XID drawable = req->drawable;
|
||||
int barrier = req->barrier;
|
||||
DrawablePtr pDraw = (DrawablePtr) LookupDrawable(drawable, client);
|
||||
int screen = pDraw->pScreen->myNum;
|
||||
|
||||
int screen;
|
||||
|
||||
if (pDraw && (pDraw->type == DRAWABLE_WINDOW)) {
|
||||
screen = pDraw->pScreen->myNum;
|
||||
if (__glXSwapBarrierFuncs &&
|
||||
__glXSwapBarrierFuncs[screen].bindSwapBarrierFunc) {
|
||||
int ret = __glXSwapBarrierFuncs[screen].bindSwapBarrierFunc(screen, drawable, barrier);
|
||||
|
|
Loading…
Reference in New Issue
Block a user