radeon/common: use glCtx not ctx
authorDave Airlie <airlied@redhat.com>
Thu, 2 Apr 2009 04:47:51 +0000 (14:47 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Apr 2009 04:47:51 +0000 (14:47 +1000)
src/mesa/drivers/dri/radeon/radeon_common_context.c

index 4d61b003454076522cc2ec047afac262377ec5b3..ef67c86f0b8af27d421246914ef2aeb3cf53a0a1 100644 (file)
@@ -223,7 +223,7 @@ void radeonDestroyContext(__DRIcontextPrivate *driContextPriv )
                        rcommonFlushCmdBuf( radeon, __FUNCTION__ );
                }
 
-               radeonReleaseArrays(ctx, ~0);
+               radeonReleaseArrays(radeon->glCtx, ~0);
 
                if (radeon->vtbl.free_context)
                        radeon->vtbl.free_context(radeon->glCtx);