commit | 284bb6568daf6a7e654f9c77cd7ce1b2d6c2757e | [log] [tgz] |
---|---|---|
author | Alexis Hetu <sugoi@google.com> | Tue Jun 30 13:40:32 2015 -0400 |
committer | Alexis Hétu <sugoi@google.com> | Tue Jun 30 19:27:51 2015 +0000 |
tree | 76dab3c5d7f78c88d94146e590d74410a953c4f2 | |
parent | 61435667680b3843bd0ad063a48f4e1206f0d343 [diff] |
Fixed Program::getAttachedShaders It was possible to have "count" larger than "maxCount" since "total" was incremented regardless of whether or not the shader was added to the "shaders" output argument. Simplified the function to fix it. Change-Id: I403e6c100580fb8f5f1c6fe170af1a796e936828 Reviewed-on: https://swiftshader-review.googlesource.com/3605 Tested-by: Alexis Hétu <sugoi@google.com> Reviewed-by: Nicolas Capens <capn@google.com>