diff --git a/cocos/2d/platform/CCGLViewProtocol.h b/cocos/2d/platform/CCGLViewProtocol.h index cde53010c3..6fae1fc546 100644 --- a/cocos/2d/platform/CCGLViewProtocol.h +++ b/cocos/2d/platform/CCGLViewProtocol.h @@ -58,8 +58,6 @@ enum class ResolutionPolicy NS_CC_BEGIN -class EGLTouchDelegate; - /** * @addtogroup platform * @{ diff --git a/cocos/2d/platform/android/CCGLView.h b/cocos/2d/platform/android/CCGLView.h index be9c920e41..63d681a787 100644 --- a/cocos/2d/platform/android/CCGLView.h +++ b/cocos/2d/platform/android/CCGLView.h @@ -35,7 +35,7 @@ THE SOFTWARE. NS_CC_BEGIN -class CC_DLL GLView : public Ref, public GLViewProtocol +class CC_DLL GLView : public GLViewProtocol, public Ref { public: diff --git a/cocos/2d/platform/desktop/CCGLView.h b/cocos/2d/platform/desktop/CCGLView.h index b1d685ff1b..afd6fc8920 100644 --- a/cocos/2d/platform/desktop/CCGLView.h +++ b/cocos/2d/platform/desktop/CCGLView.h @@ -33,7 +33,7 @@ THE SOFTWARE. NS_CC_BEGIN -class CC_DLL GLView : public Ref, public GLViewProtocol +class CC_DLL GLView : public GLViewProtocol, public Ref { public: static GLView* create(const std::string& viewName); diff --git a/cocos/2d/platform/ios/CCGLView.h b/cocos/2d/platform/ios/CCGLView.h index 1b0a56981c..76653045b7 100644 --- a/cocos/2d/platform/ios/CCGLView.h +++ b/cocos/2d/platform/ios/CCGLView.h @@ -38,7 +38,7 @@ NS_CC_BEGIN /** Class that represent the OpenGL View */ -class CC_DLL GLView : public Ref, public GLViewProtocol +class CC_DLL GLView : public GLViewProtocol, public Ref { public: /** creates a GLView with a objective-c CCEAGLView instance */