Specifically, the error reads OpenGL error 0x0502 in -[CCES2Renderer resizeFromLayer:] 140
This error only occurs on Android, not on the iOS version. I found the lines of code that cause this error (disabling them resolves the issue, but I need buttons in my game). These get called from onEnter
from my main scene.
CCButton *newUserButton = [[CCButton alloc] initWithTitle:@"New user"];
[self addChild:newUserButton];