Mesa (master): st/wgl: Fix argument of stw_pixelformat_get_info().
Brian Paul
brianp at kemper.freedesktop.org
Thu Feb 23 14:54:39 UTC 2012
Module: Mesa
Branch: master
Commit: 9ffc8ea8f4cfa15115a93039cc7099f0fd597fe3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ffc8ea8f4cfa15115a93039cc7099f0fd597fe3
Author: José Fonseca <jfonseca at vmware.com>
Date: Wed Feb 8 15:46:28 2012 +0000
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 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 2c3555d..085591a 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;
More information about the mesa-commit
mailing list