mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
gl renderer: Only return error if creating programs failed
This commit is contained in:
parent
15994db74d
commit
9eaa8bd1e7
@ -3091,7 +3091,7 @@ gsk_gl_renderer_create_programs (GskGLRenderer *self,
|
|||||||
out:
|
out:
|
||||||
gsk_gl_shader_builder_finish (&shader_builder);
|
gsk_gl_shader_builder_finish (&shader_builder);
|
||||||
|
|
||||||
if (error && !(*error))
|
if (error && !(*error) && !programs)
|
||||||
g_set_error (error, GDK_GL_ERROR, GDK_GL_ERROR_COMPILATION_FAILED,
|
g_set_error (error, GDK_GL_ERROR, GDK_GL_ERROR_COMPILATION_FAILED,
|
||||||
"Failed to compile all shader programs"); /* Probably, eh. */
|
"Failed to compile all shader programs"); /* Probably, eh. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user