egl: compilation fix
authorZack Rusin <zackr@vmware.com>
Mon, 26 Jan 2009 19:37:08 +0000 (14:37 -0500)
committerZack Rusin <zackr@vmware.com>
Mon, 26 Jan 2009 21:53:33 +0000 (16:53 -0500)
src/gallium/winsys/egl_xlib/egl_xlib.c

index 477d766925c8af37a9e191688bb483894bd6dad9..82aa60ae58f14e1022734bb82c63b58d93732099 100644 (file)
@@ -559,8 +559,10 @@ xlib_eglSwapBuffers(_EGLDriver *drv, EGLDisplay dpy, EGLSurface draw)
    {
       struct xlib_egl_surface *xsurf = lookup_surface(draw);
       struct pipe_winsys *pws = xsurf->winsys;
-      struct pipe_surface *psurf =
-         st_get_framebuffer_surface(xsurf->Framebuffer, ST_SURFACE_BACK_LEFT);
+      struct pipe_surface *psurf;
+
+      st_get_framebuffer_surface(xsurf->Framebuffer, ST_SURFACE_BACK_LEFT,
+                                 &psurf);
 
       st_notify_swapbuffers(xsurf->Framebuffer);