diff options
author | Brian Paul <[email protected]> | 2011-03-24 08:29:28 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-03-24 08:29:28 -0600 |
commit | 7d40bf25662feea57a804502814634ffa908b58c (patch) | |
tree | 486ae17cbc302f673b2cf1808f1fff8159287c2a /src/mesa/drivers | |
parent | f4e392bf8d35a87f84c8a58f9d2bd174ec29ebd9 (diff) |
radeon: fix radeon_create_image_from_name() wrong parameter type
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c index 56c5959b0aa..9a6e2feeef4 100644 --- a/src/mesa/drivers/dri/radeon/radeon_screen.c +++ b/src/mesa/drivers/dri/radeon/radeon_screen.c @@ -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, |