diff --git a/cocos/2d/CCLayer.cpp b/cocos/2d/CCLayer.cpp index 5795d863a5..8eda7bd445 100644 --- a/cocos/2d/CCLayer.cpp +++ b/cocos/2d/CCLayer.cpp @@ -597,7 +597,7 @@ void LayerColor::draw(Renderer *renderer, const Matrix &transform, bool transfor } } -void LayerColor::onDraw(const kmMat4& transform, bool transformUpdated) +void LayerColor::onDraw(const Matrix& transform, bool transformUpdated) { getShaderProgram()->use(); getShaderProgram()->setUniformsForBuiltins(transform); diff --git a/cocos/2d/CCLayer.h b/cocos/2d/CCLayer.h index 154feeed76..5deab6cf3b 100644 --- a/cocos/2d/CCLayer.h +++ b/cocos/2d/CCLayer.h @@ -296,7 +296,7 @@ CC_CONSTRUCTOR_ACCESS: bool initWithColor(const Color4B& color); protected: - void onDraw(const kmMat4& transform, bool transformUpdated); + void onDraw(const Matrix& transform, bool transformUpdated); virtual void updateColor() override;