mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
st/wgl: Fix argument of stw_pixelformat_get_info().
stw_pixelformat_get_info takes zero based index, not a 1 based pixel format number.
This commit is contained in:
parent
6835103878
commit
9ffc8ea8f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue