mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
st/egl: Fix eglCopyBuffers.
It was broken since surface_copy -> resource_copy_region transition.
This commit is contained in:
parent
20c3d7190e
commit
9d7219c560
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue