mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 22:13:25 -10:00
Only apply uniform buffers referenced by the Program.
Continues to pass dEQP-GLES3.functional.ubo.* Performance regression in draw call overhead is fixed. BUG=angleproject:882 BUG=angleproject:1171 Change-Id: I1d827d70611c1bf743a7930796e31a54aca04b1e Reviewed-on: https://chromium-review.googlesource.com/303473 Tryjob-Request: Geoff Lang <[email protected]> Reviewed-by: Jamie Madill <[email protected]> Reviewed-by: Corentin Wallez <[email protected]> Reviewed-by: Geoff Lang <[email protected]> Tested-by: Geoff Lang <[email protected]>
This commit is contained in:
1 parent
7e92161618
commit
33bb5ad676
1 file changed
+1
-2
@@ -546,8 +546,7 @@ gl::Error StateManagerGL::setGenericDrawState(const gl::Data &data)
|
||||
const ProgramGL *programGL = GetImplAs<ProgramGL>(program);
|
||||
useProgram(programGL->getProgramID());
|
||||
|
||||
for (size_t uniformBlockIndex = 0;
|
||||
uniformBlockIndex < gl::IMPLEMENTATION_MAX_COMBINED_SHADER_UNIFORM_BUFFERS;
|
||||
for (size_t uniformBlockIndex = 0; uniformBlockIndex < program->getActiveUniformBlockCount();
|
||||
uniformBlockIndex++)
|
||||
{
|
||||
GLuint binding = program->getUniformBlockBinding(static_cast<GLuint>(uniformBlockIndex));
|
||||
|
||||
Reference in new issue
Block a user