mirror of https://github.com/axmolengine/axmol.git
compiles on Linux
This commit is contained in:
parent
6b8781241c
commit
dceb9cb1b9
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue