projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20c3d71
)
st/egl: Fix eglCopyBuffers.
author
Chia-I Wu
<olv@lunarg.com>
Sun, 30 May 2010 03:01:21 +0000
(11:01 +0800)
committer
Chia-I Wu
<olv@lunarg.com>
Sun, 30 May 2010 03:05:15 +0000
(11:05 +0800)
It was broken since surface_copy -> resource_copy_region transition.
src/gallium/state_trackers/egl/common/egl_g3d_api.c
patch
|
blob
|
history
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 4615a5829a665a6b9a148f6b01d3a63e2d7966dc..2ec540a99e9fa3be74c7efaf19973e8d78f4e575 100644
(file)
--- 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;