Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-03-23 17:19:54 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-03-23 17:20:12 +0300
commitf5c33a2d48945482fd685c04a2d011ca5760f72d (patch)
tree3d13eef197020a16d229aecda1d9d4b3b08ab71a /source/blender/gpu
parente8b6d86f9514b86daefe6ee0182c57d794b603f9 (diff)
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
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_extensions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c
index c6b95caa6f7..ec7e80e6b00 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);