Fix misplaced return in GrDrawState::stageDisabled().
authortomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 25 Jun 2012 12:30:34 +0000 (12:30 +0000)
committertomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 25 Jun 2012 12:30:34 +0000 (12:30 +0000)
Original patch by guanqun.lu@gmail.com

http://codereview.appspot.com/6338058/

git-svn-id: http://skia.googlecode.com/svn/trunk@4315 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/GrDrawState.h

index acfca8c..a56baec 100644 (file)
@@ -221,8 +221,8 @@ public:
                 NULL != fSamplerStates[i].getCustomStage()) {
                 return false;
             }
-            return true;
         }
+        return true;
     }
     /**
      * Release all the textures and custom stages referred to by this