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>2018-03-28 00:51:23 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-03-28 00:51:23 +0300
commit3bb720a7de4ae7363ce45e8218e29095e1913be5 (patch)
treee1fcdeb3acc56b42e443b585a15eaebefc019fb6 /source/blender/gpu/intern
parent7a94d4362afbe64f3fcf2bd7e89601a7ea54cb98 (diff)
GPUShader: Cleanup: Remove unused uniform_interface.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r--source/blender/gpu/intern/gpu_shader.c3
-rw-r--r--source/blender/gpu/intern/gpu_shader_private.h3
2 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/gpu/intern/gpu_shader.c b/source/blender/gpu/intern/gpu_shader.c
index 2cb3476d568..f8339802eeb 100644
--- a/source/blender/gpu/intern/gpu_shader.c
+++ b/source/blender/gpu/intern/gpu_shader.c
@@ -530,9 +530,6 @@ void GPU_shader_free(GPUShader *shader)
if (shader->program)
glDeleteProgram(shader->program);
- if (shader->uniform_interface)
- MEM_freeN(shader->uniform_interface);
-
if (shader->interface)
GWN_shaderinterface_discard(shader->interface);
diff --git a/source/blender/gpu/intern/gpu_shader_private.h b/source/blender/gpu/intern/gpu_shader_private.h
index f883773df17..67d8c6e6213 100644
--- a/source/blender/gpu/intern/gpu_shader_private.h
+++ b/source/blender/gpu/intern/gpu_shader_private.h
@@ -35,9 +35,6 @@ struct GPUShader {
GLuint geometry; /* handle for geometry shader */
GLuint fragment; /* handle for fragment shader */
- void *uniform_interface; /* cached uniform interface for shader. Data depends on shader */
- /* NOTE: ^-- only FX compositing shaders use this */
-
Gwn_ShaderInterface *interface; /* cached uniform & attrib interface for shader */
};