From a34168edaaffbe722a74299120d86c84eab2eaf2 Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Wed, 24 Apr 2013 20:18:43 -0500 Subject: [PATCH] winemac: Fix an off-by-one error in macdrv_wglChoosePixelFormatARB(). --- dlls/winemac.drv/opengl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winemac.drv/opengl.c b/dlls/winemac.drv/opengl.c index e72281a2397..5f269fcdecb 100644 --- a/dlls/winemac.drv/opengl.c +++ b/dlls/winemac.drv/opengl.c @@ -1917,8 +1917,8 @@ static BOOL macdrv_wglChoosePixelFormatARB(HDC hdc, const int *piAttribIList, else if (accum_bits || accum_red_bits || accum_green_bits || accum_blue_bits || accum_alpha_bits) continue; - piFormats[found++] = i; - TRACE("match: pixel format %d %s\n", i, debugstr_pf(&pixel_formats[i])); + piFormats[found++] = i + 1; + TRACE("match: pixel format %d %s\n", i + 1, debugstr_pf(&pixel_formats[i])); } cant_match: -- 2.11.4.GIT