cast -1 to Mode to avoid warning (enum compared to signed int)

git-svn-id: http://skia.googlecode.com/svn/trunk@12580 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2013-12-09 20:31:50 +00:00
parent 8bbf6b92ee
commit d7b1af68de

View File

@ -45,7 +45,7 @@ void GrTextureDomain::GLDomain::sampleTexture(GrGLShaderBuilder* builder,
const SkString& inCoords,
const GrGLEffect::TextureSampler sampler,
const char* inModulateColor) {
SkASSERT(-1 == fMode || textureDomain.mode() == fMode);
SkASSERT((Mode)-1 == fMode || textureDomain.mode() == fMode);
SkDEBUGCODE(fMode = textureDomain.mode();)
if (kIgnore_Mode == textureDomain.mode()) {