diff options
Diffstat (limited to 'video/out/gl_w32.c')
-rw-r--r-- | video/out/gl_w32.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/video/out/gl_w32.c b/video/out/gl_w32.c index ccb7679109..87f98f117e 100644 --- a/video/out/gl_w32.c +++ b/video/out/gl_w32.c @@ -150,10 +150,9 @@ static bool create_context_w32_gl3(struct MPGLContext *ctx) if (!wglCreateContextAttribsARB) goto unsupported; - int gl_version = ctx->requested_gl_version; int attribs[] = { - WGL_CONTEXT_MAJOR_VERSION_ARB, MPGL_VER_GET_MAJOR(gl_version), - WGL_CONTEXT_MINOR_VERSION_ARB, MPGL_VER_GET_MINOR(gl_version), + WGL_CONTEXT_MAJOR_VERSION_ARB, 3, + WGL_CONTEXT_MINOR_VERSION_ARB, 0, WGL_CONTEXT_FLAGS_ARB, 0, WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_CORE_PROFILE_BIT_ARB, 0 |