mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 12:50:10 +01:00
meta: Avoid FBO resizing/reallocating in decompress_texture_image
Reallocate/resize decompress FBO only if texture image width/height is greater than existing decompress FBO width/height. This is a candidate for stable branches. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
78734e375a
commit
66bf25f1a2
1 changed files with 1 additions and 1 deletions
|
|
@ -3292,7 +3292,7 @@ decompress_texture_image(struct gl_context *ctx,
|
|||
}
|
||||
|
||||
/* alloc dest surface */
|
||||
if (width != decompress->Width || height != decompress->Height) {
|
||||
if (width > decompress->Width || height > decompress->Height) {
|
||||
_mesa_RenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGBA,
|
||||
width, height);
|
||||
decompress->Width = width;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue