Fix read-from-uninitialized in s3vMakeCurrent()
authorAdam Jackson <ajax@freedesktop.org>
Mon, 27 Dec 2004 22:57:05 +0000 (22:57 +0000)
committerAdam Jackson <ajax@freedesktop.org>
Mon, 27 Dec 2004 22:57:05 +0000 (22:57 +0000)
src/mesa/drivers/dri/s3v/s3v_xmesa.c

index ee59eaff095b7290c4dd8fdea69c26a0ccfe2855..84072b14716d70d55f5fba540e025233e69c8782 100644 (file)
@@ -172,6 +172,7 @@ s3vMakeCurrent(__DRIcontextPrivate *driContextPriv,
 
        s3vContextPtr vmesa;
        __DRIdrawablePrivate *dPriv = driDrawPriv;
+       vmesa = (s3vContextPtr) dPriv->driContextPriv->driverPrivate;
        
        DEBUG(("s3vMakeCurrent\n"));