summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/egl/common/egl_g3d_st.c
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-11-03 15:57:06 +0800
committerChia-I Wu <olv@lunarg.com>2010-11-03 16:08:23 +0800
commit0ae4b23c534bc4182a019ab7d6a174588a42f844 (patch)
tree8ab15595ae3742e60b37f7ab983e7255b0af733d /src/gallium/state_trackers/egl/common/egl_g3d_st.c
parent94bf657b2390a1cb72d748047e5c7014e4bc1752 (diff)
st/egl: Use native_surface::present callback.
Replace native_surface::flush_frontbuffer and native_surface::swap_buffers calls by native_surface::present calls.
Diffstat (limited to 'src/gallium/state_trackers/egl/common/egl_g3d_st.c')
-rw-r--r--src/gallium/state_trackers/egl/common/egl_g3d_st.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/egl/common/egl_g3d_st.c b/src/gallium/state_trackers/egl/common/egl_g3d_st.c
index 0affe632cf..25e2999590 100644
--- a/src/gallium/state_trackers/egl/common/egl_g3d_st.c
+++ b/src/gallium/state_trackers/egl/common/egl_g3d_st.c
@@ -192,7 +192,8 @@ egl_g3d_st_framebuffer_flush_front(struct st_framebuffer_iface *stfbi,
_EGLSurface *surf = (_EGLSurface *) stfbi->st_manager_private;
struct egl_g3d_surface *gsurf = egl_g3d_surface(surf);
- return gsurf->native->flush_frontbuffer(gsurf->native);
+ return gsurf->native->present(gsurf->native,
+ NATIVE_ATTACHMENT_FRONT_LEFT, FALSE, 0);
}
static boolean