gtk-egl.c (2c94822167672597d870dbeed9ffc95ea2bf93d3) gtk-egl.c (46e19e149f3b129a22c440caba853188df67deab)
1/*
2 * GTK UI -- egl opengl code.
3 *
4 * Note that gtk 3.16+ (released 2015-03-23) has a GtkGLArea widget,
5 * which is GtkDrawingArea like widget with opengl rendering support.
6 *
7 * This code handles opengl support on older gtk versions, using egl
8 * to get a opengl context for the X11 window.

--- 99 unchanged lines hidden (view full) ---

108{
109 VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
110
111 if (!vc->gfx.esurface) {
112 gd_egl_init(vc);
113 if (!vc->gfx.esurface) {
114 return;
115 }
1/*
2 * GTK UI -- egl opengl code.
3 *
4 * Note that gtk 3.16+ (released 2015-03-23) has a GtkGLArea widget,
5 * which is GtkDrawingArea like widget with opengl rendering support.
6 *
7 * This code handles opengl support on older gtk versions, using egl
8 * to get a opengl context for the X11 window.

--- 99 unchanged lines hidden (view full) ---

108{
109 VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
110
111 if (!vc->gfx.esurface) {
112 gd_egl_init(vc);
113 if (!vc->gfx.esurface) {
114 return;
115 }
116 vc->gfx.gls = console_gl_init_context();
116 vc->gfx.gls = qemu_gl_init_shader();
117 if (vc->gfx.ds) {
118 surface_gl_create_texture(vc->gfx.gls, vc->gfx.ds);
119 }
120 }
121
122 graphic_hw_update(dcl->con);
123
124 if (vc->gfx.glupdates) {

--- 117 unchanged lines hidden ---
117 if (vc->gfx.ds) {
118 surface_gl_create_texture(vc->gfx.gls, vc->gfx.ds);
119 }
120 }
121
122 graphic_hw_update(dcl->con);
123
124 if (vc->gfx.glupdates) {

--- 117 unchanged lines hidden ---