Skip to content

Commit

Permalink
winemac: Fix an off-by-one error in macdrv_wglChoosePixelFormatARB().
Browse files Browse the repository at this point in the history
  • Loading branch information
KenThomases authored and julliard committed Apr 25, 2013
1 parent dfa2ba3 commit a34168e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlls/winemac.drv/opengl.c
Expand Up @@ -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:
Expand Down

0 comments on commit a34168e

Please sign in to comment.