Commit 6118676c authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

winex11.drv: Fix attributes conversion in wglCreateContextAttribsARB().

parent 3e564b1e
...@@ -1953,27 +1953,30 @@ static struct wgl_context *X11DRV_wglCreateContextAttribsARB( HDC hdc, struct wg ...@@ -1953,27 +1953,30 @@ static struct wgl_context *X11DRV_wglCreateContextAttribsARB( HDC hdc, struct wg
case WGL_CONTEXT_MAJOR_VERSION_ARB: case WGL_CONTEXT_MAJOR_VERSION_ARB:
pContextAttribList[0] = GLX_CONTEXT_MAJOR_VERSION_ARB; pContextAttribList[0] = GLX_CONTEXT_MAJOR_VERSION_ARB;
pContextAttribList[1] = attribList[1]; pContextAttribList[1] = attribList[1];
pContextAttribList += 2;
break; break;
case WGL_CONTEXT_MINOR_VERSION_ARB: case WGL_CONTEXT_MINOR_VERSION_ARB:
pContextAttribList[0] = GLX_CONTEXT_MINOR_VERSION_ARB; pContextAttribList[0] = GLX_CONTEXT_MINOR_VERSION_ARB;
pContextAttribList[1] = attribList[1]; pContextAttribList[1] = attribList[1];
pContextAttribList += 2;
break; break;
case WGL_CONTEXT_LAYER_PLANE_ARB: case WGL_CONTEXT_LAYER_PLANE_ARB:
break; break;
case WGL_CONTEXT_FLAGS_ARB: case WGL_CONTEXT_FLAGS_ARB:
pContextAttribList[0] = GLX_CONTEXT_FLAGS_ARB; pContextAttribList[0] = GLX_CONTEXT_FLAGS_ARB;
pContextAttribList[1] = attribList[1]; pContextAttribList[1] = attribList[1];
pContextAttribList += 2;
break; break;
case WGL_CONTEXT_PROFILE_MASK_ARB: case WGL_CONTEXT_PROFILE_MASK_ARB:
pContextAttribList[0] = GLX_CONTEXT_PROFILE_MASK_ARB; pContextAttribList[0] = GLX_CONTEXT_PROFILE_MASK_ARB;
pContextAttribList[1] = attribList[1]; pContextAttribList[1] = attribList[1];
pContextAttribList += 2;
break; break;
default: default:
ERR("Unhandled attribList pair: %#x %#x\n", attribList[0], attribList[1]); ERR("Unhandled attribList pair: %#x %#x\n", attribList[0], attribList[1]);
} }
ret->numAttribs++; ret->numAttribs++;
attribList += 2; attribList += 2;
pContextAttribList += 2;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment