st/dri: img_from_renderbuf: Fix incorrect usage of dri_context()

This commit is contained in:
Benjamin Franzke 2011-02-09 20:48:38 +01:00 committed by Kristian Høgsberg
parent 0acb31be17
commit fa3283cca8
1 changed files with 1 additions and 1 deletions

View 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;