wgl: Implemente SwapLayerBuffers.

This commit is contained in:
José Fonseca 2009-05-01 16:30:08 +01:00 committed by Keith Whitwell
parent 0d0417cc75
commit 1ed90091be
4 changed files with 17 additions and 5 deletions

View file

@ -583,7 +583,7 @@ DrvSwapLayerBuffers(
if (DBG)
debug_printf( "%s\n", __FUNCTION__ );
return FALSE;
return stw_swap_layer_buffers( hdc, fuPlanes );
}
BOOL APIENTRY

View file

@ -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)
{

View file

@ -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,

View file

@ -100,10 +100,7 @@ wglSwapLayerBuffers(
HDC hdc,
UINT fuPlanes )
{
(void) hdc;
(void) fuPlanes;
return FALSE;
return stw_swap_layer_buffers( hdc, fuPlanes );
}
WINGDIAPI PROC APIENTRY