vrend: Add more caps for gles

This adds texture array and primitive restart caps which are
available on gles3.

Tested-by: Jakob Bornecrantz <jakob@collabora.com>
Reviewed-by: Jakob Bornecrantz <jakob@collabora.com>
Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Stéphane Marchesin 7 years ago committed by Jakob Bornecrantz
parent b199ddde9d
commit 85675f35b0
  1. 7
      src/vrend_renderer.c

@ -6581,6 +6581,7 @@ void vrend_renderer_fill_caps_gles(uint32_t set, uint32_t version,
GLint max; GLint max;
GLfloat range[2]; GLfloat range[2];
bool fill_capset2 = false; bool fill_capset2 = false;
int gles_ver = epoxy_gl_version();
if (set == 2) { if (set == 2) {
fill_capset2 = true; fill_capset2 = true;
@ -6627,6 +6628,12 @@ void vrend_renderer_fill_caps_gles(uint32_t set, uint32_t version,
caps->v1.max_viewports = 1; caps->v1.max_viewports = 1;
if (gles_ver >= 30) {
glGetIntegerv(GL_MAX_ARRAY_TEXTURE_LAYERS, &max);
caps->v1.max_texture_array_layers = max;
caps->v1.bset.primitive_restart = 1;
}
if (!fill_capset2) { if (!fill_capset2) {
return; return;
} }

Loading…
Cancel
Save