Index: src/gpu/effects/GrTextureDomain.cpp |
diff --git a/src/gpu/effects/GrTextureDomain.cpp b/src/gpu/effects/GrTextureDomain.cpp |
index 19882423fe75b9d3c7fbdeb6f36b6fb542ff1d49..93d3afb8c430aeae6599723e8c17ec4a746ae0d1 100644 |
--- a/src/gpu/effects/GrTextureDomain.cpp |
+++ b/src/gpu/effects/GrTextureDomain.cpp |
@@ -87,7 +87,7 @@ void GrTextureDomain::GLDomain::sampleTexture(GrGLShaderBuilder* builder, |
GrGLShaderBuilder::ShaderBlock block(builder); |
const char* domain = fDomainName.c_str(); |
- if (kImagination_GrGLVendor == program->ctxInfo().vendor()) { |
+ if (!program->glslCaps()->canUseAnyFunctionInShader()) { |
// On the NexusS and GalaxyNexus, the other path (with the 'any' |
// call) causes the compilation error "Calls to any function that |
// may require a gradient calculation inside a conditional block |