Roderick Colenbrander : wgl:
Fix a BadMatch error resulting from ignoring that iPixelFormat stars
counting from 1 .
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 30 08:55:37 CDT 2007
Module: wine
Branch: master
Commit: 7d8c31075b09a3c0fcb483cabc3b22f5fdf87290
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7d8c31075b09a3c0fcb483cabc3b22f5fdf87290
Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date: Fri Jul 27 14:59:01 2007 +0200
wgl: Fix a BadMatch error resulting from ignoring that iPixelFormat stars counting from 1.
---
dlls/winex11.drv/opengl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index d6202e5..05f322e 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -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;
More information about the wine-cvs
mailing list