summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/wgl/icd
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/wgl/icd')
-rw-r--r--src/gallium/state_trackers/wgl/icd/stw_icd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/wgl/icd/stw_icd.c b/src/gallium/state_trackers/wgl/icd/stw_icd.c
index 5504ac19b1..0c1cfade78 100644
--- a/src/gallium/state_trackers/wgl/icd/stw_icd.c
+++ b/src/gallium/state_trackers/wgl/icd/stw_icd.c
@@ -594,12 +594,9 @@ DrvSetPixelFormat(
HDC hdc,
LONG iPixelFormat )
{
- PIXELFORMATDESCRIPTOR pfd;
BOOL r;
- stw_pixelformat_describe( hdc, iPixelFormat, sizeof( pfd ), &pfd );
-
- r = wglSetPixelFormat( hdc, iPixelFormat, &pfd );
+ r = stw_pixelformat_set( hdc, iPixelFormat );
debug_printf( "%s( 0x%p, %d ) = %s\n", __FUNCTION__, hdc, iPixelFormat, r ? "TRUE" : "FALSE" );