OSDN Git Service

Fixed condition too strict in glBindSampler
authorAlexis Hetu <sugoi@google.com>
Thu, 10 Sep 2015 21:02:54 +0000 (17:02 -0400)
committerAlexis Hétu <sugoi@google.com>
Mon, 21 Sep 2015 18:41:44 +0000 (18:41 +0000)
commit1b50c55d259291fcece1bdbef1d9e0a98e1591b5
tree70192e10af577d9a3831d57d7abc82062c5e4a14
parent3f1d0b766d13ac9f6dc03bbb97addda23c67296a
Fixed condition too strict in glBindSampler

glBindSampler's sampler check was too strict, as the
sampler needed to exist, but not necessarily to have
been allocated yet, so the condition was fixed.

Change-Id: Ia8301028dbf35efa16bfc6cb74a69e105d8a505d
Reviewed-on: https://swiftshader-review.googlesource.com/3965
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/OpenGL/libGLESv2/libGLESv3.cpp