wined3d: Use GLSL 4.40 if available.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2017-10-18 00:25:06 +02:00 committed by Alexandre Julliard
parent f75f581aa2
commit 5deb1a20c3

View file

@ -386,7 +386,9 @@ static const char *shader_glsl_get_prefix(enum wined3d_shader_type type)
static unsigned int shader_glsl_get_version(const struct wined3d_gl_info *gl_info)
{
if (gl_info->glsl_version >= MAKEDWORD_VERSION(1, 50))
if (gl_info->glsl_version >= MAKEDWORD_VERSION(4, 40))
return 440;
else if (gl_info->glsl_version >= MAKEDWORD_VERSION(1, 50))
return 150;
else if (gl_info->glsl_version >= MAKEDWORD_VERSION(1, 30))
return 130;