mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 20:51:07 +00:00
gl renderer: Set an error if we don't have one already
We can't fail and not set the error, since caller don't expect that.
This commit is contained in:
parent
dbfc172f6a
commit
0c2d00835b
@ -3035,6 +3035,10 @@ gsk_gl_renderer_create_programs (GskGLRenderer *self,
|
||||
out:
|
||||
gsk_gl_shader_builder_finish (&shader_builder);
|
||||
|
||||
if (error && !(*error))
|
||||
g_set_error (error, GDK_GL_ERROR, GDK_GL_ERROR_COMPILATION_FAILED,
|
||||
"Failed to compile all shader programs"); /* Probably, eh. */
|
||||
|
||||
return programs;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user