aboutsummaryrefslogtreecommitdiff
path: root/ui/console-gl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-10-10 15:54:50 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-10-17 10:25:42 +0200
commit2e1d70b9e03ca3f1c6185b54010bc9e47e0a0d0c (patch)
tree98f4a8f35a8a696ddcae2a20ea87db4425c8d396 /ui/console-gl.c
parent46e19e149f3b129a22c440caba853188df67deab (diff)
downloadqemu-2e1d70b9e03ca3f1c6185b54010bc9e47e0a0d0c.zip
qemu-2e1d70b9e03ca3f1c6185b54010bc9e47e0a0d0c.tar.gz
qemu-2e1d70b9e03ca3f1c6185b54010bc9e47e0a0d0c.tar.bz2
opengl: add flipping vertex shader
Add vertex shader which flips the texture upside down while blitting it. Add argument to qemu_gl_run_texture_blit() to enable flipping. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20171010135453.6704-4-kraxel@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 9b50dae..5b77e7a 100644
--- a/ui/console-gl.c
+++ b/ui/console-gl.c
@@ -109,7 +109,7 @@ void surface_gl_render_texture(QemuGLShader *gls,
glClearColor(0.1f, 0.1f, 0.1f, 0.0f);
glClear(GL_COLOR_BUFFER_BIT);
- qemu_gl_run_texture_blit(gls);
+ qemu_gl_run_texture_blit(gls, false);
}
void surface_gl_destroy_texture(QemuGLShader *gls,