fix CCEGLView custom ctor on windows

Co-authored-by: alk <45172705+altalk23@users.noreply.github.com>
This commit is contained in:
ConfiG 2023-06-09 15:30:08 +03:00
parent 4c4be3657a
commit d72797334f
No known key found for this signature in database
GPG key ID: 44DA1983F524C11B

View file

@ -45,7 +45,17 @@ protected:
RT_ADD( virtual ~CCEGLView(); )
public:
CCEGLView();
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCEGLView, CCObject)
CCEGLView(geode::ZeroConstructorType, size_t fill) :
CCEGLViewProtocol(geode::ZeroConstructor, fill),
CCObject(geode::ZeroConstructor, fill - sizeof(CCEGLViewProtocol)) {}
CCEGLView(geode::ZeroConstructorType) :
CCEGLViewProtocol(geode::ZeroConstructor, sizeof(CCEGLView)),
CCObject(geode::ZeroConstructor, sizeof(CCEGLView) - sizeof(CCEGLViewProtocol)) {}
CCEGLView(geode::CutoffConstructorType, size_t fill) : CCEGLView() {}
RT_REMOVE( virtual ~CCEGLView(); )
/* override functions */