wgl: Fix a BadMatch error resulting from ignoring that iPixelFormat stars counting from 1.

This commit is contained in:
Roderick Colenbrander 2007-07-27 14:59:01 +02:00 committed by Alexandre Julliard
parent 630d602631
commit 7d8c31075b
1 changed files with 2 additions and 2 deletions

View File

@ -919,8 +919,8 @@ static BOOL init_formats(Display *display, int screen, Visual *visual)
/* We have found an offscreen rendering format :) */
if(tmp_vis_id == 0) {
TRACE("Found offscreen format FBCONFIG_ID 0x%x corresponding to iPixelFormat %d at GLX index %d\n", tmp_fmt_id, WineGLPixelFormatListSize, i);
WineGLPixelFormatList[WineGLPixelFormatListSize].iPixelFormat = WineGLPixelFormatListSize;
TRACE("Found offscreen format FBCONFIG_ID 0x%x corresponding to iPixelFormat %d at GLX index %d\n", tmp_fmt_id, WineGLPixelFormatListSize+1, i);
WineGLPixelFormatList[WineGLPixelFormatListSize].iPixelFormat = WineGLPixelFormatListSize+1; /* The index starts at 1 */
WineGLPixelFormatList[WineGLPixelFormatListSize].fbconfig = cfgs[i];
WineGLPixelFormatList[WineGLPixelFormatListSize].fmt_id = tmp_fmt_id;
WineGLPixelFormatList[WineGLPixelFormatListSize].offscreenOnly = TRUE;