Fix improper getSamplerState in Context::applyTextures.
Introduced in cdf22f94acaf86.
R=geofflang@chromium.org
BUG=
Review URL: https://codereview.appspot.com/20320043
diff --git a/src/libGLESv2/Context.cpp b/src/libGLESv2/Context.cpp
index 0260110..d50595d 100644
--- a/src/libGLESv2/Context.cpp
+++ b/src/libGLESv2/Context.cpp
@@ -2392,8 +2392,8 @@
SamplerState samplerState;
texture->getSamplerState(&samplerState);
- if (texture->isSamplerComplete(samplerState) &&
- boundFramebufferTextures.find(texture->getTextureSerial()) == boundFramebufferTextures.end())
+ if ((mState.samplers[textureUnit] != 0) &&
+ (boundFramebufferTextures.find(texture->getTextureSerial()) == boundFramebufferTextures.end()))
{
Sampler *samplerObject = getSampler(mState.samplers[textureUnit]);
samplerObject->getState(&samplerState);