aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/main/shaderobj.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-01-20 09:41:09 +0100
committermarha <marha@users.sourceforge.net>2012-01-20 09:41:09 +0100
commitc5f912c7b9248440bf9dff4b3c64513ec0f3ec98 (patch)
tree7986b288489dac6a8a70787dbdedfc0c064a0c02 /mesalib/src/mesa/main/shaderobj.c
parent27bec2ba601ec12334e6b7564034f87ab7c9522b (diff)
parenta8ef69cc0c9e5281e6b745dd4a2be75f629eb8b8 (diff)
downloadvcxsrv-c5f912c7b9248440bf9dff4b3c64513ec0f3ec98.tar.gz
vcxsrv-c5f912c7b9248440bf9dff4b3c64513ec0f3ec98.tar.bz2
vcxsrv-c5f912c7b9248440bf9dff4b3c64513ec0f3ec98.zip
Merge remote-tracking branch 'origin/released'
Diffstat (limited to 'mesalib/src/mesa/main/shaderobj.c')
-rw-r--r--mesalib/src/mesa/main/shaderobj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesalib/src/mesa/main/shaderobj.c b/mesalib/src/mesa/main/shaderobj.c
index de66851e9..36f208d6c 100644
--- a/mesalib/src/mesa/main/shaderobj.c
+++ b/mesalib/src/mesa/main/shaderobj.c
@@ -35,6 +35,7 @@
#include "main/mfeatures.h"
#include "main/mtypes.h"
#include "main/shaderobj.h"
+#include "main/uniforms.h"
#include "program/program.h"
#include "program/prog_parameter.h"
#include "program/hash_table.h"
@@ -276,6 +277,7 @@ _mesa_clear_shader_program_data(struct gl_context *ctx,
struct gl_shader_program *shProg)
{
if (shProg->UniformStorage) {
+ _mesa_uniform_detach_all_driver_storage(shProg->UniformStorage);
ralloc_free(shProg->UniformStorage);
shProg->NumUserUniformStorage = 0;
shProg->UniformStorage = NULL;