From bad932e8ed4b5af75ad2a4619d2331ad1a530900 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 14 May 2015 13:07:00 +0200 Subject: vo_opengl: hardcode rquested GL version in backends The requested version field didn't make much sense anymore, and was even partially ignored by some backends. --- video/out/gl_w32.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'video/out/gl_w32.c') 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 -- cgit v1.2.3