Make static const var that is only used in an assert be defined in the debug build only to suppress an unused var warning.

git-svn-id: http://skia.googlecode.com/svn/trunk@4012 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2012-05-21 15:31:00 +00:00
parent 7b578928a5
commit 7c4d06de41

View File

@ -75,9 +75,11 @@ public:
virtual StageKey stageKey(const GrCustomStage* stage) const SK_OVERRIDE {
GrAssert(kIllegalStageClassID != fStageClassID);
StageKey stageID = GLProgramStage::GenKey(stage);
#if GR_DEBUG
static const StageKey kIllegalIDMask =
~((1 << kProgramStageKeyBits) - 1);
GrAssert(!(kIllegalIDMask & stageID));
#endif
return fStageClassID | stageID;
}