[Bf-blender-cvs] [f5c33a2] master: Shader errors:
Antony Riakiotakis
noreply at git.blender.org
Mon Mar 23 15:20:51 CET 2015
Commit: f5c33a2d48945482fd685c04a2d011ca5760f72d
Author: Antony Riakiotakis
Date: Mon Mar 23 15:19:54 2015 +0100
Branches: master
https://developer.blender.org/rBf5c33a2d48945482fd685c04a2d011ca5760f72d
Shader errors:
Count line from beginning of the whole shader source instead of each
string sepatately since it helps with finding out the error line in most
tested platforms
===================================================================
M source/blender/gpu/intern/gpu_extensions.c
===================================================================
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c
index c6b95ca..ec7e80e 100644
--- a/source/blender/gpu/intern/gpu_extensions.c
+++ b/source/blender/gpu/intern/gpu_extensions.c
@@ -1407,12 +1407,12 @@ struct GPUShader {
static void shader_print_errors(const char *task, char *log, const char **code, int totcode)
{
int i;
+ int line = 1;
fprintf(stderr, "GPUShader: %s error:\n", task);
for (i = 0; i < totcode; i++) {
const char *c, *pos, *end = code[i] + strlen(code[i]);
- int line = 1;
if ((G.debug & G_DEBUG)) {
fprintf(stderr, "===== shader string %d ====\n", i + 1);
More information about the Bf-blender-cvs
mailing list