mesa: Remove unused field gl_uniform_buffer_variable::Buffer
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 13 Dec 2012 10:22:24 +0000 (02:22 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 19 Jan 2013 01:35:33 +0000 (17:35 -0800)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast_to_hir.cpp
src/mesa/main/mtypes.h

index 31dd51aa9216031960a65846acc9ea18fcca66c1..de3ce902e0d6821e83fab228d88a73e0b6dfe7fc 100644 (file)
@@ -4166,7 +4166,6 @@ ast_uniform_block::hir(exec_list *instructions,
 
         ubo_var->Name = ralloc_strdup(state->uniform_blocks, var->name);
         ubo_var->Type = var->type;
-        ubo_var->Buffer = ubo - state->uniform_blocks;
         ubo_var->Offset = 0; /* Assigned at link time. */
 
         if (var->type->is_matrix() ||
index d0c0e24acd169ed40616d6cde4784b43281ca180..e696d304e520684336c41d25b911cb8b75ce41a8 100644 (file)
@@ -2274,7 +2274,6 @@ struct gl_uniform_buffer_variable
 {
    char *Name;
    const struct glsl_type *Type;
-   unsigned int Buffer;
    unsigned int Offset;
    GLboolean RowMajor;
 };