Commit 4dc3af09 by Geoff Lang Committed by Commit Bot

Set the right size on the uniform bindings array.

BUG=angleproject:1468 Change-Id: I3d75a03fcf624fe7f9510e76edc4a8298d8c5a72 Reviewed-on: https://chromium-review.googlesource.com/412860 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 437cca5a
......@@ -323,7 +323,7 @@ Context::Context(rx::EGLImplFactory *implFactory,
bindRenderbuffer(GL_RENDERBUFFER, 0);
bindGenericUniformBuffer(0);
for (unsigned int i = 0; i < mCaps.maxCombinedUniformBlocks; i++)
for (unsigned int i = 0; i < mCaps.maxUniformBufferBindings; i++)
{
bindIndexedUniformBuffer(0, i, 0, -1);
}
......
......@@ -160,7 +160,7 @@ void State::initialize(const Caps &caps,
mVertexAttribCurrentValues.resize(caps.maxVertexAttributes);
mUniformBuffers.resize(caps.maxCombinedUniformBlocks);
mUniformBuffers.resize(caps.maxUniformBufferBindings);
mSamplerTextures[GL_TEXTURE_2D].resize(caps.maxCombinedTextureImageUnits);
mSamplerTextures[GL_TEXTURE_CUBE_MAP].resize(caps.maxCombinedTextureImageUnits);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment