mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
opengl: move shader init from console-gl.c to shader.c
With the upcoming dmabuf support in qemu there will be more users of the shaders than just console-gl.c. So rename ConsoleGLState to QemuGLShader, rename some functions too, move code from console-gl.c to shaders.c. No functional change. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20171010135453.6704-3-kraxel@redhat.com
This commit is contained in:
parent
4133fa711f
commit
46e19e149f
12 changed files with 68 additions and 72 deletions
|
@ -113,7 +113,7 @@ void gd_egl_refresh(DisplayChangeListener *dcl)
|
|||
if (!vc->gfx.esurface) {
|
||||
return;
|
||||
}
|
||||
vc->gfx.gls = console_gl_init_context();
|
||||
vc->gfx.gls = qemu_gl_init_shader();
|
||||
if (vc->gfx.ds) {
|
||||
surface_gl_create_texture(vc->gfx.gls, vc->gfx.ds);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue