aboutsummaryrefslogtreecommitdiff
path: root/ui/console-gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/console-gl.c')
-rw-r--r--ui/console-gl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/console-gl.c b/ui/console-gl.c
index 7c9894a..8e3c9a3 100644
--- a/ui/console-gl.c
+++ b/ui/console-gl.c
@@ -49,6 +49,10 @@ void surface_gl_create_texture(QemuGLShader *gls,
assert(gls);
assert(QEMU_IS_ALIGNED(surface_stride(surface), surface_bytes_per_pixel(surface)));
+ if (surface->texture) {
+ return;
+ }
+
switch (surface->format) {
case PIXMAN_BE_b8g8r8x8:
case PIXMAN_BE_b8g8r8a8: