mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
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
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user