mesa/st: Temporary workaround for fdo bug 64568.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 14 May 2013 15:55:56 +0000 (16:55 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 14 May 2013 16:02:53 +0000 (17:02 +0100)
Effectively reverting the problematic hunk of
commit 614ee25077b7ffafeb87b22563d01856824fb4bc

src/mesa/state_tracker/st_extensions.c

index b64d363d3497599db57fba44c278147e439d0be3..982e652f1b006563d1f47e9f02328f26394f2f30 100644 (file)
@@ -279,10 +279,15 @@ void st_init_limits(struct st_context *st)
       st->ctx->Extensions.ARB_uniform_buffer_object = GL_TRUE;
       c->UniformBufferOffsetAlignment =
          screen->get_param(screen, PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT);
+      /* FIXME: _mesa_init_buffer_objects() already has been, and
+       * ctx->UniformBufferBindings allocated, so unfortunately we can't just
+       * change MaxUniformBufferBindings a posteriori. */
+#if 0
       c->MaxCombinedUniformBlocks = c->MaxUniformBufferBindings =
          c->VertexProgram.MaxUniformBlocks +
          c->GeometryProgram.MaxUniformBlocks +
          c->FragmentProgram.MaxUniformBlocks;
+#endif
    }
 }