From 6beed86ab8970b57aad8442a3e6bf6410fff13ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 8 Feb 2012 15:46:28 +0000 Subject: [PATCH] st/wgl: Fix argument of stw_pixelformat_get_info(). stw_pixelformat_get_info takes zero based index, not a 1 based pixel format number. --- src/gallium/state_trackers/wgl/stw_ext_pbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c b/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c index 252d07a..a2224fb 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; -- 2.7.4