compiles on Linux

This commit is contained in:
Ricardo Quesada 2014-01-22 14:17:32 -08:00
parent 6b8781241c
commit dceb9cb1b9
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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;