[SOLVED] After updating to 3.11 cannot set glView frame size for mac

Hi,

Everything worked fine, since today, when after update the game insta-crashes if i’m setting the window size.

Any ideas why or how to fix? Thanks.

P.S. I use mac version to test and debug, before testing on mobile devices.

Hi.

It is hard to say something without all code listing.
Can you please try the following example?

auto director = Director::getInstance();
auto view = director->getOpenGLView();

if(!view)
{
view = cocos2d::GLViewImpl::createWithRect(“SOME TITLE”, Rect(0, 0, YOUR_WIDTH, YOUR_HEIGHT));

director->setOpenGLView(view);
}

@igormats Worked, thanks!

You are welcome.