diff options
-rw-r--r-- | gsk/gl/gskglrenderer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c index 2af766c99b..00fb5aea5e 100644 --- a/gsk/gl/gskglrenderer.c +++ b/gsk/gl/gskglrenderer.c @@ -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; } |