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 252d07a90cc..a2224fba2bc 100644 --- a/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c +++ b/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c @@ -82,7 +82,7 @@ wglCreatePbufferARB(HDC _hDC, HWND hWnd; HDC hDC; - info = stw_pixelformat_get_info(iPixelFormat); + info = stw_pixelformat_get_info(iPixelFormat - 1); if (!info) { SetLastError(ERROR_INVALID_PIXEL_FORMAT); return 0; |