diff options
author | Chia-I Wu <[email protected]> | 2010-05-30 11:01:21 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-05-30 11:05:15 +0800 |
commit | 9d7219c560d468e1329d6867cff5033e979f535f (patch) | |
tree | 568aef07966d15744a09a2ca053dfd80063d14bc /src/gallium/state_trackers | |
parent | 20c3d7190ed2c748cf959366a963b7dc973c5423 (diff) |
st/egl: Fix eglCopyBuffers.
It was broken since surface_copy -> resource_copy_region transition.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/egl/common/egl_g3d_api.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/egl/common/egl_g3d_api.c b/src/gallium/state_trackers/egl/common/egl_g3d_api.c index 4615a5829a6..2ec540a99e9 100644 --- a/src/gallium/state_trackers/egl/common/egl_g3d_api.c +++ b/src/gallium/state_trackers/egl/common/egl_g3d_api.c @@ -428,7 +428,6 @@ egl_g3d_copy_buffers(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, _EGLContext *ctx = _eglGetCurrentContext(); struct egl_g3d_config *gconf; struct native_surface *nsurf; - struct pipe_screen *screen = gdpy->native->screen; struct pipe_resource *ptex; if (!gsurf->render_texture) @@ -460,7 +459,7 @@ egl_g3d_copy_buffers(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, ptex = get_pipe_resource(gdpy->native, nsurf, NATIVE_ATTACHMENT_FRONT_LEFT); if (ptex) { - struct pipe_surface *psrc; + struct pipe_resource *psrc = gsurf->render_texture; struct pipe_subresource subsrc, subdst; subsrc.face = 0; subsrc.level = 0; |