summary refs log tree commit diff stats
path: root/ui/console-gl.c
diff options
context:
space:
mode:
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;