gl renderer: Only return error if creating programs failed

This commit is contained in:
Timm Bäder 2020-09-19 18:37:53 +02:00
parent 15994db74d
commit 9eaa8bd1e7

View File

@ -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. */