diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index 7ee99b16cee..ca379d07330 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -984,7 +984,7 @@ static WineGLPixelFormat* ConvertPixelFormatWGLtoGLX(Display *display, int iPixe } /* Search our internal pixelformat list for the WGL format corresponding to the given fbconfig */ -static int ConvertPixelFormatGLXtoWGL(Display *display, int fmt_id) +static WineGLPixelFormat* ConvertPixelFormatGLXtoWGL(Display *display, int fmt_id) { int i; @@ -995,11 +995,11 @@ static int ConvertPixelFormatGLXtoWGL(Display *display, int fmt_id) for(i=0; ioffscreenOnly) || ((run == 1) && !fmt->offscreenOnly) ) + continue; + + if(pfmt_it < nMaxFormats) { + piFormats[pfmt_it] = fmt->iPixelFormat; + TRACE("at %d/%d found FBCONFIG_ID 0x%x (%d)\n", it + 1, nCfgs, fmt_id, piFormats[pfmt_it]); + } + pfmt_it++; } - pfmt_it++; } *nNumFormats = pfmt_it;