From: Benjamin Franzke Date: Wed, 9 Feb 2011 19:48:38 +0000 (+0100) Subject: st/dri: img_from_renderbuf: Fix incorrect usage of dri_context() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa3283cca8a2b010db60d9879b0f87802c0c9a3f;p=mesa.git st/dri: img_from_renderbuf: Fix incorrect usage of dri_context() --- diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index be740ad39b7..a69f20e6085 100644 --- a/src/gallium/state_trackers/dri/drm/dri2.c +++ b/src/gallium/state_trackers/dri/drm/dri2.c @@ -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;