summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-09-16 05:57:11 +0200
committerTimm Bäder <mail@baedert.org>2020-09-18 15:39:07 +0200
commit0c2d00835b39ef7b30ba4ef473f552166f8af032 (patch)
tree62e7a14b036d48dfd7f0402e9665db7de8f8045c
parentdbfc172f6ad21880bfe0aff3a140fe6fab48a50f (diff)
downloadgtk+-0c2d00835b39ef7b30ba4ef473f552166f8af032.tar.gz
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.
-rw-r--r--gsk/gl/gskglrenderer.c4
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;
}