projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee8969
)
st/wgl: Fix argument of stw_pixelformat_get_info().
author
José Fonseca
<jfonseca@vmware.com>
Wed, 8 Feb 2012 15:46:28 +0000
(15:46 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 10 Feb 2012 16:23:27 +0000
(16:23 +0000)
stw_pixelformat_get_info takes zero based index, not a 1 based pixel
format number.
src/gallium/state_trackers/wgl/stw_ext_pbuffer.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c
b/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c
index 252d07a90cc216f85e8f93384b207a1c094e5765..a2224fba2bce4acf2e66e643aaf9d07279e65828 100644
(file)
--- 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;