summary refs log tree commit diff stats
path: root/ui/console-gl.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-08-30 13:38:21 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2023-09-12 10:37:02 +0400
commitff174c67dbe29ee2792cc020e077a0fff8af501c (patch)
tree6cded0d72e47f0e127e029784c4cc46a64786fa1 /ui/console-gl.c
parentcc6ba2c6f53d9f6003a52845298807dac7709e0f (diff)
downloadfocaccia-qemu-ff174c67dbe29ee2792cc020e077a0fff8af501c.tar.gz
focaccia-qemu-ff174c67dbe29ee2792cc020e077a0fff8af501c.zip
ui/console: remove redundant format field
It's already part of PIXMAN image.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'ui/console-gl.c')
-rw-r--r--ui/console-gl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/console-gl.c b/ui/console-gl.c
index 8e3c9a3c8c..103b954017 100644
--- a/ui/console-gl.c
+++ b/ui/console-gl.c
@@ -53,7 +53,7 @@ void surface_gl_create_texture(QemuGLShader *gls,
         return;
     }
 
-    switch (surface->format) {
+    switch (surface_format(surface)) {
     case PIXMAN_BE_b8g8r8x8:
     case PIXMAN_BE_b8g8r8a8:
         surface->glformat = GL_BGRA_EXT;