radeon: fix radeon_create_image_from_name() wrong parameter type
authorBrian Paul <brianp@vmware.com>
Thu, 24 Mar 2011 14:29:28 +0000 (08:29 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 24 Mar 2011 14:29:28 +0000 (08:29 -0600)
src/mesa/drivers/dri/radeon/radeon_screen.c

index 56c5959b0aa12fb97da5ac610700add65842c15a..9a6e2feeef4cbb26276d60f97c21fdb85001c3bb 100644 (file)
@@ -401,12 +401,12 @@ static const struct __DRI2flushExtensionRec radeonFlushExtension = {
 };
 
 static __DRIimage *
-radeon_create_image_from_name(__DRIcontext *context,
+radeon_create_image_from_name(__DRIscreen *screen,
                               int width, int height, int format,
                               int name, int pitch, void *loaderPrivate)
 {
    __DRIimage *image;
-   radeonContextPtr radeon = context->driverPrivate;
+   radeonScreenPtr radeonScreen = screen->private;
 
    if (name == 0)
       return NULL;
@@ -442,7 +442,7 @@ radeon_create_image_from_name(__DRIcontext *context,
    image->pitch = pitch;
    image->height = height;
 
-   image->bo = radeon_bo_open(radeon->radeonScreen->bom,
+   image->bo = radeon_bo_open(radeonScreen->bom,
                               (uint32_t)name,
                               image->pitch * image->height * image->cpp,
                               0,