OSDN Git Service

Fixed Program::getAttachedShaders
authorAlexis Hetu <sugoi@google.com>
Tue, 30 Jun 2015 17:40:32 +0000 (13:40 -0400)
committerAlexis Hétu <sugoi@google.com>
Tue, 30 Jun 2015 19:27:51 +0000 (19:27 +0000)
commit284bb6568daf6a7e654f9c77cd7ce1b2d6c2757e
tree76dab3c5d7f78c88d94146e590d74410a953c4f2
parent61435667680b3843bd0ad063a48f4e1206f0d343
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>
src/OpenGL/libGLESv2/Program.cpp