renderer: support newer glsl version

Signed-off-by: Elie Tournier <elie.tournier@collabora.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Elie Tournier 5 years ago
parent 6c44b4a798
commit 447108ec60
  1. 12
      src/vrend_renderer.c
  2. 2
      src/vrend_renderer.h

@ -9346,16 +9346,8 @@ static void vrend_fill_caps_glsl_version(int gl_ver, int gles_ver,
caps->v1.glsl_level = 140;
else if (gl_ver == 32)
caps->v1.glsl_level = 150;
else if (gl_ver == 33)
caps->v1.glsl_level = 330;
else if (gl_ver == 40)
caps->v1.glsl_level = 400;
else if (gl_ver == 41)
caps->v1.glsl_level = 410;
else if (gl_ver == 42)
caps->v1.glsl_level = 420;
else if (gl_ver >= 43)
caps->v1.glsl_level = 430;
else if (gl_ver >= 33)
caps->v1.glsl_level = 10 * gl_ver;
}
if (caps->v1.glsl_level < 400) {

@ -460,7 +460,7 @@ struct gl_version {
uint32_t minor;
};
static const struct gl_version gl_versions[] = { {4,5}, {4,4}, {4,3}, {4,2}, {4,1}, {4,0},
static const struct gl_version gl_versions[] = { {4,6}, {4,5}, {4,4}, {4,3}, {4,2}, {4,1}, {4,0},
{3,3}, {3,2}, {3,1}, {3,0} };
extern struct vrend_if_cbs *vrend_clicbs;

Loading…
Cancel
Save