vrend: don't call glShaderStorageBlockBinding on GLES and warn about it's use

v2: change warning message into debug message
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Gert Wollny 6 years ago committed by Dave Airlie
parent 7751ba2cff
commit a457c578ce
  1. 8
      src/vrend_renderer.c

@ -3603,8 +3603,12 @@ static void vrend_draw_bind_ssbo_shader(struct vrend_context *ctx, int shader_ty
res = (struct vrend_resource *)ssbo->res; res = (struct vrend_resource *)ssbo->res;
glBindBufferRange(GL_SHADER_STORAGE_BUFFER, i, res->id, glBindBufferRange(GL_SHADER_STORAGE_BUFFER, i, res->id,
ssbo->buffer_offset, ssbo->buffer_size); ssbo->buffer_offset, ssbo->buffer_size);
if (ctx->sub->prog->ssbo_locs[shader_type][i] != GL_INVALID_INDEX) if (ctx->sub->prog->ssbo_locs[shader_type][i] != GL_INVALID_INDEX) {
glShaderStorageBlockBinding(ctx->sub->prog->id, ctx->sub->prog->ssbo_locs[shader_type][i], i); if (!vrend_state.use_gles)
glShaderStorageBlockBinding(ctx->sub->prog->id, ctx->sub->prog->ssbo_locs[shader_type][i], i);
else
debug_printf("glShaderStorageBlockBinding not supported on gles \n");
}
} }
} }

Loading…
Cancel
Save