From 23e8aa021004679ff212fb95e9244f4ecfeb344c Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Tue, 7 Aug 2018 09:46:20 +0200 Subject: [PATCH] glwin32: don't activate on XP Close #20580 --- modules/video_output/win32/glwin32.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/video_output/win32/glwin32.c b/modules/video_output/win32/glwin32.c index 0635a184a8..6427ccf658 100644 --- a/modules/video_output/win32/glwin32.c +++ b/modules/video_output/win32/glwin32.c @@ -31,6 +31,7 @@ #include #include +#include #define GLEW_STATIC #include "../opengl/vout_helper.h" @@ -113,6 +114,10 @@ static int Open(vlc_object_t *object) vout_display_t *vd = (vout_display_t *)object; vout_display_sys_t *sys; + /* do not use OpenGL on XP unless forced */ + if(!object->obj.force && !IsWindowsVistaOrGreater()) + return VLC_EGENERIC; + /* Allocate structure */ vd->sys = sys = calloc(1, sizeof(*sys)); if (!sys) -- 2.11.4.GIT