From 45eb512a43e257427617699e3849ca93434c1717 Mon Sep 17 00:00:00 2001 From: chenjiangnan Date: Thu, 29 Apr 2021 11:12:58 +0800 Subject: [PATCH] vrend: glTextureView will check whether the base texture is immutable Signed-off-by: chenjiangnan Reviewed-by: Gert Wollny --- src/vrend_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 9746e3a..022ebdd 100644 --- a/src/vrend_renderer.c +++ b/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