[gtk/wip/baedert/radial-gradient: 9/13] gl renderer: Set an error if we don't have one already
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/radial-gradient: 9/13] gl renderer: Set an error if we don't have one already
- Date: Fri, 18 Sep 2020 13:45:17 +0000 (UTC)
commit 0c2d00835b39ef7b30ba4ef473f552166f8af032
Author: Timm Bäder <mail baedert org>
Date: Wed Sep 16 05:57:11 2020 +0200
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.
gsk/gl/gskglrenderer.c | 4 ++++
1 file changed, 4 insertions(+)
---
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]