st/dri: img_from_renderbuf: Fix incorrect usage of dri_context()
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Wed, 9 Feb 2011 19:48:38 +0000 (20:48 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 11 Feb 2011 04:07:01 +0000 (23:07 -0500)
src/gallium/state_trackers/dri/drm/dri2.c

index be740ad39b7fc4f14e86f8ca087f4263abeea050..a69f20e608586969393d5b75fb94e43f66322ab4 100644 (file)
@@ -459,7 +459,7 @@ static __DRIimage *
 dri2_create_image_from_renderbuffer(__DRIcontext *context,
                                    int renderbuffer, void *loaderPrivate)
 {
-   struct dri_context *ctx = dri_context(context->driverPrivate);
+   struct dri_context *ctx = dri_context(context);
 
    if (!ctx->st->get_resource_for_egl_image)
       return NULL;