#include "main/compiler.h"
#include "main/mtypes.h"
#include "main/macros.h"
+#include "program/hash_table.h"
#include "util/ralloc.h"
#include "uniform_initializer_utils.h"
+ type->components()));
const unsigned red_zone_components = total_components - data_components;
+ prog->UniformHash = new string_to_uint_map;
prog->UniformStorage = rzalloc_array(prog, struct gl_uniform_storage,
num_storage);
prog->NumUniformStorage = num_storage;
data_components,
red_zone_components);
+ prog->UniformHash->put(index_to_set,
+ prog->UniformStorage[index_to_set].name);
+
for (unsigned i = 0; i < num_storage; i++) {
if (i == index_to_set)
continue;