Compiles on iOS

This commit is contained in:
Ricardo Quesada 2014-06-02 16:02:54 -07:00
parent b24c674d25
commit 449b588400
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ namespace experimental{
virtual void addEventListener(const VideoPlayer::ccVideoPlayerCallback& callback);
virtual void onPlayEvent(VideoPlayer::EventType event);
virtual void draw(Renderer *renderer, const Mat4& transform, bool transformUpdated) override;
virtual void draw(Renderer *renderer, const Mat4& transform, uint32_t flags) override;
protected:
virtual cocos2d::ui::Widget* createCloneInstance() override;

View File

@ -314,9 +314,9 @@ void VideoPlayer::setURL(const std::string& videoUrl)
void VideoPlayer::draw(Renderer* renderer, const Mat4 &transform, uint32_t flags)
{
cocos2d::ui::Widget::draw(renderer,transform,transformUpdated);
cocos2d::ui::Widget::draw(renderer,transform,flags);
if (transformUpdated)
if (flags & FLAGS_TRANSFORM_DIRTY)
{
auto directorInstance = Director::getInstance();
auto glView = directorInstance->getOpenGLView();