mirror of https://github.com/axmolengine/axmol.git
Merge branch 'gles20' of https://github.com/dualface/cocos2d-x into dualface-lua
This commit is contained in:
commit
2f51246bbd
|
@ -38,7 +38,6 @@ class CC_DLL CCEGLView : public CCEGLViewProtocol
|
|||
{
|
||||
public:
|
||||
static CCEGLView* sharedOpenGLView(void);
|
||||
static void purgeSharedOpenGLView(void);
|
||||
|
||||
virtual ~CCEGLView(void);
|
||||
|
||||
|
|
|
@ -41,14 +41,6 @@ CCEGLView* CCEGLView::sharedOpenGLView(void)
|
|||
return s_sharedView;
|
||||
}
|
||||
|
||||
void CCEGLView::purgeSharedOpenGLView(void)
|
||||
{
|
||||
if (s_sharedView)
|
||||
{
|
||||
delete s_sharedView;
|
||||
}
|
||||
}
|
||||
|
||||
CCEGLView::CCEGLView(void)
|
||||
{
|
||||
m_obScreenSize.width = m_obDesignResolutionSize.width = [[EAGLView sharedEGLView] getWidth];
|
||||
|
@ -78,7 +70,7 @@ void CCEGLView::end(void)
|
|||
// destroy EAGLView
|
||||
[[EAGLView sharedEGLView] removeFromSuperview];
|
||||
|
||||
purgeSharedOpenGLView();
|
||||
delete this;
|
||||
}
|
||||
|
||||
void CCEGLView::swapBuffers()
|
||||
|
|
Loading…
Reference in New Issue