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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user