Chris Robinson : winex11: Don't assume just one on-screen pixel format.
Module: wine Branch: master Commit: f825db6d0f2e07e35874842f859ec611ae1d5bf7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f825db6d0f2e07e35874842f85... Author: Chris Robinson <chris.kcat(a)gmail.com> Date: Tue Sep 11 13:16:54 2007 -0700 winex11: Don't assume just one on-screen pixel format. --- dlls/winex11.drv/opengl.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index 6fffb80..b30ab37 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -149,6 +149,7 @@ static int WineGLExtensionListSize; static WineGLPixelFormat *WineGLPixelFormatList; static int WineGLPixelFormatListSize = 0; +static int WineGLPixelFormatOnScreenSize = 0; static void X11DRV_WineGL_LoadExtensions(void); static BOOL glxRequireVersion(int requiredVersion); @@ -854,6 +855,7 @@ static BOOL init_formats(Display *display, int screen, Visual *visual) WineGLPixelFormatList[0].render_type = get_render_type_from_fbconfig(display, fbconfig); WineGLPixelFormatList[0].offscreenOnly = FALSE; WineGLPixelFormatListSize = 1; + WineGLPixelFormatOnScreenSize = 1; /* Fill the list with offscreen formats */ for(i=0; i<nCfgs; i++) { @@ -904,7 +906,7 @@ static WineGLPixelFormat* ConvertPixelFormatWGLtoGLX(Display *display, int iPixe if(AllowOffscreen) *fmt_count = WineGLPixelFormatListSize; else - *fmt_count = 1; + *fmt_count = WineGLPixelFormatOnScreenSize; TRACE("Number of returned pixelformats=%d\n", *fmt_count);
participants (1)
-
Alexandre Julliard