mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 10:08:08 +02:00
mesa: fix proxy textures becoming immutable and unusable
glTexStorage*() functions make textures immutable. This carries on to
proxy textures. Error checking in texture storage functions prevents
proxy textures from working after first time because internally, they
became immutable.
This commit makes the error checking ignore the immutability flag when
working with proxy textures.
Reviewed-by: Brian Paul <brianp@vmware.com>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit e404105e7d)
This commit is contained in:
parent
ddf6f591a9
commit
b61036fa2d
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ tex_storage_error_check(struct gl_context *ctx, GLuint dims, GLenum target,
|
|||
}
|
||||
|
||||
/* Check if texObj->Immutable is set */
|
||||
if (texObj->Immutable) {
|
||||
if (!_mesa_is_proxy_texture(target) && texObj->Immutable) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glTexStorage%uD(immutable)",
|
||||
dims);
|
||||
return GL_TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue