forked from AuroraMiddleware/gtk
shaderbuilder: Print error message after source code
My terminal scrolls down, so showing the error message last makes sense.
This commit is contained in:
parent
7bf858b9d0
commit
9fe21b7181
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user