diff options
-rw-r--r-- | src/gallium/state_trackers/wgl/stw_ext_pbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c b/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c index 2c3555d5dbf..085591a5560 100644 --- a/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c +++ b/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c @@ -85,7 +85,7 @@ wglCreatePbufferARB(HDC hCurrentDC, PIXELFORMATDESCRIPTOR pfd; BOOL bRet; - info = stw_pixelformat_get_info(iPixelFormat); + info = stw_pixelformat_get_info(iPixelFormat - 1); if (!info) { SetLastError(ERROR_INVALID_PIXEL_FORMAT); return 0; |