[gtk/wip/baedert/for-master: 8/13] gl renderer: Only return error if creating programs failed




commit 89a453d938bb667033b81c58e34ec6c15c6f61a0
Author: Timm Bäder <mail baedert org>
Date:   Sat Sep 19 18:37:53 2020 +0200

    gl renderer: Only return error if creating programs failed

 gsk/gl/gskglrenderer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index e207c4a0f7..5c033c52c9 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -3091,7 +3091,7 @@ gsk_gl_renderer_create_programs (GskGLRenderer  *self,
 out:
   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,
                  "Failed to compile all shader programs"); /* Probably, eh. */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]