diff options
author | José Fonseca <[email protected]> | 2012-02-08 15:46:28 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-02-23 07:49:08 -0700 |
commit | 9ffc8ea8f4cfa15115a93039cc7099f0fd597fe3 (patch) | |
tree | c23a2877d2020c9ce3e00c2d9b7b122eaae48858 /src/gallium | |
parent | 6835103878afd27a1d66d29d16cbfb0b1e894a94 (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.
Diffstat (limited to 'src/gallium')
-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; |