x11drv: Fix wgl pixel format bug.

This commit is contained in:
Roderick Colenbrander 2006-10-03 22:56:20 +02:00 committed by Alexandre Julliard
parent 95a67ab373
commit 9461c0c634
1 changed files with 1 additions and 1 deletions

View File

@ -1203,7 +1203,7 @@ HGLRC X11DRV_wglCreateContext(X11DRV_PDEVICE *physDev)
/* We can only render using the iPixelFormat (1) of Wine's Main visual, we need to get the correspondig GLX format.
* If this fails something is very wrong on the system. */
if(!ConvertPixelFormatWGLtoGLX(gdi_display, hdcPF, &tmp, &fmt_index)) {
if(!ConvertPixelFormatWGLtoGLX(gdi_display, hdcPF, &fmt_index, &tmp)) {
ERR("Cannot get FB Config for main iPixelFormat 1, expect problems!\n");
SetLastError(ERROR_INVALID_PIXEL_FORMAT);
return NULL;