mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 07:37:02 +00:00
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:
parent
f75f581aa2
commit
5deb1a20c3
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue