mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
st/wgl: fix WGL_SWAP_METHOD_ARB query
There are three possible return values (not two): WGL_SWAP_COPY_ARB, WGL_SWAP_EXCHANGE_EXT and WGL_SWAP_UNDEFINED_ARB. VMware bug 1431184 Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
73bdf4ba86
commit
4c11008eba
1 changed files with 6 additions and 1 deletions
|
|
@ -88,7 +88,12 @@ stw_query_attrib(
|
|||
return TRUE;
|
||||
|
||||
case WGL_SWAP_METHOD_ARB:
|
||||
*pvalue = pfi->pfd.dwFlags & PFD_SWAP_COPY ? WGL_SWAP_COPY_ARB : WGL_SWAP_UNDEFINED_ARB;
|
||||
if (pfi->pfd.dwFlags & PFD_SWAP_COPY)
|
||||
*pvalue = WGL_SWAP_COPY_ARB;
|
||||
else if (pfi->pfd.dwFlags & PFD_SWAP_EXCHANGE)
|
||||
*pvalue = WGL_SWAP_EXCHANGE_EXT;
|
||||
else
|
||||
*pvalue = WGL_SWAP_UNDEFINED_ARB;
|
||||
return TRUE;
|
||||
|
||||
case WGL_SWAP_LAYER_BUFFERS_ARB:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue