Index: src/gpu/effects/GrTextureDomain.cpp |
diff --git a/src/gpu/effects/GrTextureDomain.cpp b/src/gpu/effects/GrTextureDomain.cpp |
index 93d3afb8c430aeae6599723e8c17ec4a746ae0d1..19882423fe75b9d3c7fbdeb6f36b6fb542ff1d49 100644 |
--- a/src/gpu/effects/GrTextureDomain.cpp |
+++ b/src/gpu/effects/GrTextureDomain.cpp |
@@ -87,7 +87,7 @@ |
GrGLShaderBuilder::ShaderBlock block(builder); |
const char* domain = fDomainName.c_str(); |
- if (!program->glslCaps()->canUseAnyFunctionInShader()) { |
+ if (kImagination_GrGLVendor == program->ctxInfo().vendor()) { |
// 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 |