X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ui%2Fconsole-gl.c;h=0a6478161fed60910838890ada258f8951196536;hb=HEAD;hp=7c9894a51d99aae7421f5a4abfd212ed4ceab81d;hpb=1db136a29ce8594b693938ab8e788d8bcef54770;p=mirror_qemu.git diff --git a/ui/console-gl.c b/ui/console-gl.c index 7c9894a51d..103b954017 100644 --- a/ui/console-gl.c +++ b/ui/console-gl.c @@ -49,7 +49,11 @@ void surface_gl_create_texture(QemuGLShader *gls, assert(gls); assert(QEMU_IS_ALIGNED(surface_stride(surface), surface_bytes_per_pixel(surface))); - switch (surface->format) { + if (surface->texture) { + return; + } + + switch (surface_format(surface)) { case PIXMAN_BE_b8g8r8x8: case PIXMAN_BE_b8g8r8a8: surface->glformat = GL_BGRA_EXT;