From dceb9cb1b9f4fd3ed23de7c9309ffb356821d31b Mon Sep 17 00:00:00 2001 From: Ricardo Quesada Date: Wed, 22 Jan 2014 14:17:32 -0800 Subject: [PATCH] compiles on Linux --- cocos/2d/platform/desktop/CCEGLView.cpp | 4 +++- cocos/2d/platform/desktop/CCEGLView.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cocos/2d/platform/desktop/CCEGLView.cpp b/cocos/2d/platform/desktop/CCEGLView.cpp index c291041166..45ee59b252 100644 --- a/cocos/2d/platform/desktop/CCEGLView.cpp +++ b/cocos/2d/platform/desktop/CCEGLView.cpp @@ -494,7 +494,7 @@ EGLView* EGLView::sharedOpenGLView() } // helper -void EGLView::initGlew() +bool EGLView::initGlew() { #if CC_TARGET_PLATFORM == CC_PLATFORM_LINUX GLenum GlewInitResult = glewInit(); @@ -529,6 +529,8 @@ void EGLView::initGlew() // } #endif // Linux + + return true; } NS_CC_END // end of namespace cocos2d; diff --git a/cocos/2d/platform/desktop/CCEGLView.h b/cocos/2d/platform/desktop/CCEGLView.h index a353e95113..4b9531fd94 100644 --- a/cocos/2d/platform/desktop/CCEGLView.h +++ b/cocos/2d/platform/desktop/CCEGLView.h @@ -84,7 +84,7 @@ protected: * Set zoom factor for frame. This method is for debugging big resolution (e.g.new ipad) app on desktop. */ void setFrameZoomFactor(float zoomFactor); - void initGlew(); + bool initGlew(); inline bool isRetina() { return _isRetina; }; bool _captured;