diff options
author | Jakob Borncrantz <[email protected]> | 2010-05-21 23:25:45 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-05-21 23:29:05 +0100 |
commit | 4db0c760195c67f1bc114fdfb8464791030a526c (patch) | |
tree | 7150261c8b1e9c2e80d8647a7abbf87c151c96cc /src/gallium/state_trackers/dri/common | |
parent | ffd2bc3dfbcccd3c38ff93ac107027a5a5764eb5 (diff) |
st_api: Give get_egl_image arguments directly to the function
Diffstat (limited to 'src/gallium/state_trackers/dri/common')
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_screen.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_screen.c b/src/gallium/state_trackers/dri/common/dri_screen.c index 5decdb23b15..fa1a35deb32 100644 --- a/src/gallium/state_trackers/dri/common/dri_screen.c +++ b/src/gallium/state_trackers/dri/common/dri_screen.c @@ -314,15 +314,17 @@ dri_get_swap_info(__DRIdrawable * dPriv, __DRIswapInfo * sInfo) static boolean dri_get_egl_image(struct st_manager *smapi, - struct st_egl_image *stimg) + struct st_context_iface *stctxi, + void *egl_image, + struct st_egl_image *stimg) { struct dri_context *ctx = - (struct dri_context *)stimg->stctxi->st_manager_private; + (struct dri_context *)stctxi->st_manager_private; struct dri_screen *screen = dri_screen(ctx->sPriv); __DRIimage *img = NULL; if (screen->lookup_egl_image) { - img = screen->lookup_egl_image(ctx, stimg->egl_image); + img = screen->lookup_egl_image(ctx, egl_image); } if (!img) |