[Resolved]WebGL error when using setDesignResolutionSize

Hi all, I’ve noticed a strange bug when trying the any of the fullscreen samples on Chrome on my Macbook Air.

I get all crashed graphics sometimes unless I resize the window or bring up the developer tools.

If I comment out _cc.EGLView.getInstance().setDesignResolutionSize(800,450,cc.RESOLUTION_POLICY.SHOW_ALL)_ it seems to be fine all the time.

Not sure if this is a Chrome bug or what ?

-Tyson

OK, here’s what I did to fix it.

I moved out that function call from main.js to the first scene the game uses.

Works fine now! Not sure why it happens.

-Tyson