summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2012-02-08 15:46:28 +0000
committerJosé Fonseca <jfonseca@vmware.com>2012-02-10 16:23:27 +0000
commit6beed86ab8970b57aad8442a3e6bf6410fff13ec (patch)
tree005de0aa970ffafc8b0883959840825b784c5105
parent5ee8969b11b8018ed3e1e785f34a6b8fe6abf0ff (diff)
st/wgl: Fix argument of stw_pixelformat_get_info().
stw_pixelformat_get_info takes zero based index, not a 1 based pixel format number.
-rw-r--r--src/gallium/state_trackers/wgl/stw_ext_pbuffer.c2
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;