mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 16:40:41 -05:00
renderer-native: Fix memory leak in secondary GPU update
Leaking a texture object and a framebuffer object every time you update
the secondary GPU is perhaps not the best plan.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1011
(cherry picked from commit 545fcb3dbf
)
This commit is contained in:
parent
6b6e724425
commit
59e9b073a5
@ -82,6 +82,9 @@ paint_egl_image (MetaGles3 *gles3,
|
|||||||
0, 0, width, height,
|
0, 0, width, height,
|
||||||
GL_COLOR_BUFFER_BIT,
|
GL_COLOR_BUFFER_BIT,
|
||||||
GL_NEAREST));
|
GL_NEAREST));
|
||||||
|
|
||||||
|
GLBAS (gles3, glDeleteTextures, (1, &texture));
|
||||||
|
GLBAS (gles3, glDeleteFramebuffers, (1, &framebuffer));
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user