diff --git a/cocos/2d/CCClippingRectangleNode.cpp b/cocos/2d/CCClippingRectangleNode.cpp index 3dfc42cbda..eb3476858b 100644 --- a/cocos/2d/CCClippingRectangleNode.cpp +++ b/cocos/2d/CCClippingRectangleNode.cpp @@ -53,8 +53,8 @@ void ClippingRectangleNode::onBeforeVisitScissor() const Point pos = convertToWorldSpace(Point(_clippingRegion.origin.x, _clippingRegion.origin.y)); GLView* glView = Director::getInstance()->getOpenGLView(); - glView->setScissorInPoints(pos.x * scaleX, - pos.y * scaleY, + glView->setScissorInPoints(pos.x, + pos.y, _clippingRegion.size.width * scaleX, _clippingRegion.size.height * scaleY); } diff --git a/cocos/2d/CCClippingRectangleNode.h b/cocos/2d/CCClippingRectangleNode.h index aef9bd9c8a..848189b1bd 100644 --- a/cocos/2d/CCClippingRectangleNode.h +++ b/cocos/2d/CCClippingRectangleNode.h @@ -42,6 +42,7 @@ NS_CC_BEGIN /** @brief Clipping Rectangle Node. @details A node that clipped with specified rectangle. + The region of ClippingRectangleNode doesn't support any transform except scale. @js NA */ class CC_DLL ClippingRectangleNode : public Node