vrend: glTextureView will check whether the base texture is immutable

Signed-off-by: chenjiangnan <chen.jiangnan@zlingsmart.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
chenjiangnan 4 years ago committed by JN-Chen
parent c1e65b4f95
commit 45eb512a43
  1. 2
      src/vrend_renderer.c

@ -1878,7 +1878,7 @@ int vrend_create_surface(struct vrend_context *ctx,
surf->id = res->id;
if (!has_bit(res->storage_bits, VREND_STORAGE_GL_BUFFER) &&
vrend_format_can_texture_view(format)) {
has_bit(res->storage_bits, VREND_STORAGE_GL_IMMUTABLE)) {
/* We don't need texture views for buffer objects.
* Otherwise we only need a texture view if the
* a) formats differ between the surface and base texture

Loading…
Cancel
Save