Commit 81abb063 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Make DirectX default on XP, instead of Direct3d

We did that for 2.0 temporarily but kept master normal

This is still broken on some weird configurations, so well, temporary is
going to last..
parent 442d36c4
......@@ -142,6 +142,11 @@ static int Open(vlc_object_t *object)
vout_display_t *vd = (vout_display_t *)object;
vout_display_sys_t *sys;
OSVERSIONINFO winVer;
winVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
if(GetVersionEx(&winVer) && winVer.dwMajorVersion < 6 && !object->b_force)
return VLC_EGENERIC;
/* Allocate structure */
vd->sys = sys = calloc(1, sizeof(vout_display_sys_t));
if (!sys)
......
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