]> git.proxmox.com Git - mirror_qemu.git/commit - ui/console-gl.c
shaders: initialize vertexes once
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 10 Jul 2015 12:40:01 +0000 (14:40 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 8 Oct 2015 08:31:35 +0000 (10:31 +0200)
commitc046d8284474a0f7763dea849433bde37a69023d
treeafcbf03727d22e119d1252c039083fa049c33083
parent5fdb4671b08e0d1631447e81348b2b50a6b85bf7
shaders: initialize vertexes once

Create a buffer for the vertex data and place vertexes
there at initialization time.  Then just use the buffer
for each texture blit.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
include/ui/shader.h
ui/console-gl.c
ui/shader.c