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:
authorClément Foucault <foucault.clem@gmail.com>2020-08-14 19:13:23 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-08-18 22:30:10 +0300
commite43e9caf1b17a029efbead02cabeba9b2cf9dcc7 (patch)
tree402908339ef0bd10782e1a2d338cb086770d4d3b /source/blender/gpu/intern/gpu_shader_private.hh
parent216d78687d2b9468b05fb598d1cef0b8424a40d2 (diff)
GPUShader: Rewrite error printing
Now error printing only display the line related to the error. We also put char marker if present. Example: ``` -- Shader Compilation Errors : MAMaterial -- 10414 | node_fresnel(, facingnormal, viewposition, tmp34); | ^ | error: syntax error, unexpected ',', expecting ')' ---------------------------------- ```
Diffstat (limited to 'source/blender/gpu/intern/gpu_shader_private.hh')
-rw-r--r--source/blender/gpu/intern/gpu_shader_private.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_shader_private.hh b/source/blender/gpu/intern/gpu_shader_private.hh
index 29e78dcd533..5fb8324cf6f 100644
--- a/source/blender/gpu/intern/gpu_shader_private.hh
+++ b/source/blender/gpu/intern/gpu_shader_private.hh
@@ -51,7 +51,7 @@ class Shader : public GPUShader {
virtual void uniform_int(int location, int comp_len, int array_size, const int *data) = 0;
protected:
- void print_errors(Span<const char *> sources, const char *log);
+ void print_errors(Span<const char *> sources, char *log);
};
} // namespace gpu