diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-05-01 16:30:08 +0100 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-05-08 14:57:28 +0100 |
commit | 1ed90091be0a79977eb6c055ba1da56114d52f53 (patch) | |
tree | 279054ffce905e53f332cfbc0d20d42300f9964c /src/gallium/state_trackers/wgl/shared | |
parent | 0d0417cc75c3f7047a783c42a76bf378d8ab1397 (diff) |
wgl: Implemente SwapLayerBuffers.
Diffstat (limited to 'src/gallium/state_trackers/wgl/shared')
-rw-r--r-- | src/gallium/state_trackers/wgl/shared/stw_framebuffer.c | 12 | ||||
-rw-r--r-- | src/gallium/state_trackers/wgl/shared/stw_public.h | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/wgl/shared/stw_framebuffer.c b/src/gallium/state_trackers/wgl/shared/stw_framebuffer.c index 4348b8f326..f66f429542 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_framebuffer.c +++ b/src/gallium/state_trackers/wgl/shared/stw_framebuffer.c @@ -237,6 +237,18 @@ stw_swap_buffers( } +BOOL +stw_swap_layer_buffers( + HDC hdc, + UINT fuPlanes ) +{ + if(fuPlanes & WGL_SWAP_MAIN_PLANE) + return stw_swap_buffers(hdc); + + return FALSE; +} + + boolean stw_framebuffer_init_thread(void) { diff --git a/src/gallium/state_trackers/wgl/shared/stw_public.h b/src/gallium/state_trackers/wgl/shared/stw_public.h index 39d377c16b..59d709a6d4 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_public.h +++ b/src/gallium/state_trackers/wgl/shared/stw_public.h @@ -50,6 +50,9 @@ BOOL stw_make_current( HDC hdc, UINT_PTR hglrc ); BOOL stw_swap_buffers( HDC hdc ); +BOOL +stw_swap_layer_buffers( HDC hdc, UINT fuPlanes ); + PROC stw_get_proc_address( LPCSTR lpszProc ); int stw_pixelformat_describe( HDC hdc, |