mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
glrenderer: Ensure current context for debug stuff
This commit is contained in:
parent
1fa4b9f58c
commit
777beb0d0a
@ -3145,6 +3145,7 @@ gsk_gl_renderer_render_texture (GskRenderer *renderer,
|
||||
|
||||
g_return_val_if_fail (self->gl_context != NULL, NULL);
|
||||
|
||||
gdk_gl_context_make_current (self->gl_context);
|
||||
gdk_gl_context_push_debug_group_printf (self->gl_context,
|
||||
"Render %s<%p> to texture", root->node_class->type_name, root);
|
||||
|
||||
@ -3152,7 +3153,6 @@ gsk_gl_renderer_render_texture (GskRenderer *renderer,
|
||||
height = ceilf (viewport->size.height);
|
||||
|
||||
self->scale_factor = gdk_surface_get_scale_factor (gsk_renderer_get_surface (renderer));
|
||||
gdk_gl_context_make_current (self->gl_context);
|
||||
|
||||
/* Prepare our framebuffer */
|
||||
gsk_gl_driver_begin_frame (self->gl_driver);
|
||||
@ -3204,6 +3204,7 @@ gsk_gl_renderer_render (GskRenderer *renderer,
|
||||
if (self->gl_context == NULL)
|
||||
return;
|
||||
|
||||
gdk_gl_context_make_current (self->gl_context);
|
||||
gdk_gl_context_push_debug_group_printf (self->gl_context,
|
||||
"Render root node %p", root);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user