[gtk/wip/baedert/for-master: 46/46] shaderbuilder: Print error message after source code




commit e349ad61a929141bbf6476b3c5316c6ec195159a
Author: Timm Bäder <mail baedert org>
Date:   Thu Oct 1 08:39:37 2020 +0200

    shaderbuilder: Print error message after source code
    
    My terminal scrolls down, so showing the error message last makes sense.

 gsk/gl/gskglshaderbuilder.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gsk/gl/gskglshaderbuilder.c b/gsk/gl/gskglshaderbuilder.c
index f860a68d95..d3b2a8351c 100644
--- a/gsk/gl/gskglshaderbuilder.c
+++ b/gsk/gl/gskglshaderbuilder.c
@@ -91,9 +91,9 @@ check_shader_error (int     shader_id,
   prepend_line_numbers (code, s);
 
   g_set_error (error, GDK_GL_ERROR, GDK_GL_ERROR_COMPILATION_FAILED,
-               "Compilation failure in shader.\nError message: %s\n\nSource code:\n%s\n\n",
-               buffer,
-               s->str);
+               "Compilation failure in shader.\nSource Code: %s\n\nError Message:\n%s\n\n",
+               s->str,
+               buffer);
 
   g_string_free (s, TRUE);
   g_free (buffer);


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