Commit fdff7e63 authored by Marek Olšák's avatar Marek Olšák

st/mesa: expose ARB_ES2_compatibility if GL_FIXED vertex format is supported

Tested with softpipe and llvmpipe.
Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
parent 0f1e59de
......@@ -515,6 +515,12 @@ void st_init_extensions(struct st_context *st)
ctx->Extensions.ARB_half_float_vertex = GL_TRUE;
}
if (screen->is_format_supported(screen, PIPE_FORMAT_R32G32B32A32_FIXED,
PIPE_BUFFER, 0,
PIPE_BIND_VERTEX_BUFFER)) {
ctx->Extensions.ARB_ES2_compatibility = GL_TRUE;
}
if (screen->get_shader_param(screen, PIPE_SHADER_GEOMETRY, PIPE_SHADER_CAP_MAX_INSTRUCTIONS) > 0) {
#if 0 /* XXX re-enable when GLSL compiler again supports geometry shaders */
ctx->Extensions.ARB_geometry_shader4 = GL_TRUE;
......
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