diff options
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; |