summaryrefslogtreecommitdiffstats
path: root/video/out/gl_w32.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-14 13:07:00 +0200
committerwm4 <wm4@nowhere>2015-05-14 13:07:00 +0200
commitbad932e8ed4b5af75ad2a4619d2331ad1a530900 (patch)
tree822b38faaefb114a6c3b9190608ea8487ee68d6f /video/out/gl_w32.c
parentfa39dadb059bb81839b6e97e74e5b83b7c0a2a0f (diff)
downloadmpv-bad932e8ed4b5af75ad2a4619d2331ad1a530900.tar.bz2
mpv-bad932e8ed4b5af75ad2a4619d2331ad1a530900.tar.xz
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.
Diffstat (limited to 'video/out/gl_w32.c')
-rw-r--r--video/out/gl_w32.c5
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