st/mesa/glsl/i965: set num_ubos directly in shader_info
[mesa.git] / src / mesa / state_tracker / st_atom_constbuf.c
index 3b5031dcf204c542c1336ebcec3aa56818578dcd..30bffa648c5408444c97d043d50ca40d1cb98098 100644 (file)
@@ -248,7 +248,7 @@ static void st_bind_ubos(struct st_context *st,
    if (!shader)
       return;
 
-   for (i = 0; i < shader->NumUniformBlocks; i++) {
+   for (i = 0; i < shader->Program->info.num_ubos; i++) {
       struct gl_uniform_buffer_binding *binding;
       struct st_buffer_object *st_obj;