dri: Pass the __DRIscreen and the __DRIscreen private back to image lookup

We will typically have a current context when we need to lookup the image,
but the lookup implementation don't need it so drop it.
This commit is contained in:
Kristian Høgsberg
2010-09-22 22:01:17 -04:00
parent 1c2423999e
commit 17eace581d
11 changed files with 21 additions and 23 deletions

View File

@@ -202,8 +202,8 @@ intel_image_target_renderbuffer_storage(GLcontext *ctx,
__DRIimage *image;
screen = intel->intelScreen->driScrnPriv;
image = screen->dri2.image->lookupEGLImage(intel->driContext, image_handle,
intel->driContext->loaderPrivate);
image = screen->dri2.image->lookupEGLImage(screen, image_handle,
screen->loaderPrivate);
if (image == NULL)
return;