Commit 5deb1a20 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Use GLSL 4.40 if available.

parent f75f581a
...@@ -386,7 +386,9 @@ static const char *shader_glsl_get_prefix(enum wined3d_shader_type type) ...@@ -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) 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; return 150;
else if (gl_info->glsl_version >= MAKEDWORD_VERSION(1, 30)) else if (gl_info->glsl_version >= MAKEDWORD_VERSION(1, 30))
return 130; return 130;
......
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