gl: use glFramebufferTexture2D to set framebuffer texture

When mapping a texture to the framebuffer, we can use the 2D
form instead of the cube mapping form.
This commit is contained in:
Christian Hergert 2020-11-17 20:11:18 -08:00
parent 7551f85d4c
commit eae5eaeb21

View File

@ -4273,7 +4273,7 @@ gsk_gl_renderer_render_texture (GskRenderer *renderer,
g_type_name_from_instance ((GTypeInstance *) root),
root,
fbo_id);
glFramebufferTexture (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, texture_id, 0);
glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture_id, 0);
/* Render the actual scene */
gsk_gl_renderer_do_render (renderer, root, viewport, fbo_id, 1);