diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-04 10:09:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-04 10:09:12 +0300 |
commit | 6654e109df952be3a3128fae2508a02c196ae593 (patch) | |
tree | df4ed014a9adb9ee727ed2bd551a186e03e62b92 /source/blender/gpu/intern/gpu_shader.c | |
parent | 2d3d76693a84224b86eac50729fb5a321753b7e3 (diff) |
Cleanup: strip trailing space in GPU module
Diffstat (limited to 'source/blender/gpu/intern/gpu_shader.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_shader.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/gpu/intern/gpu_shader.c b/source/blender/gpu/intern/gpu_shader.c index d43b2f257e8..331af47d560 100644 --- a/source/blender/gpu/intern/gpu_shader.c +++ b/source/blender/gpu/intern/gpu_shader.c @@ -112,11 +112,11 @@ static void shader_print_errors(const char *task, const char *log, const char ** c = pos + 1; line++; } - + fprintf(stderr, "%s", c); } } - + fprintf(stderr, "%s\n", log); } @@ -461,7 +461,7 @@ GPUShader *GPU_shader_create_ex(const char *vertexcode, GPU_shader_free(shader); return NULL; } - + if (!use_opensubdiv) { GPU_shader_geometry_stage_primitive_io(shader, input, output, number); } @@ -620,7 +620,7 @@ void GPU_shader_uniform_texture(GPUShader *UNUSED(shader), int location, GPUText fprintf(stderr, "Not enough texture slots.\n"); return; } - + if (number == -1) return; @@ -646,7 +646,7 @@ void GPU_shader_uniform_texture(GPUShader *UNUSED(shader), int location, GPUText int GPU_shader_get_attribute(GPUShader *shader, const char *name) { int index; - + GPU_CHECK_ERRORS_AROUND(index = glGetAttribLocation(shader->program, name)); return index; |