CCLabelTTF Max Font Size

Hey Guys,

I am using Cocos2d-x 3.6 for a project. The problem is with CreateFontWithTTF, it is visible on all simulators and on all iPhones and non retina iPads but on iPad retina the label is not visible. I increased(250) the font size from the code and ran the project on my iPhone 5s and saw garbage boxes instead of the text, i am assuming there is a max size for the label can someone help me out here?

Btw i got the following error when this happened:

OpenGL error 0x0501 in …/cocos2d/cocos/renderer/CCRenderer.cpp saveRenderState 156

Also sometimes there is no label visible and no garbage the screen just stays black.

Here are my GL settings for the project

//AppController.mm
CCEAGLView eaglView = [CCEAGLView viewWithFrame: [window bounds]
pixelFormat: (NSString
)cocos2d::GLViewImpl::_pixelFormat
depthFormat: cocos2d::GLViewImpl::_depthFormat
preserveBackbuffer: NO
sharegroup: nil
multiSampling: NO
numberOfSamples: 0 ];

// Enable or disable multiple touches
[eaglView setMultipleTouchEnabled:NO];

//

//AppDelegate.cpp
void AppDelegate::initGLContextAttrs()
{
//set OpenGL context attributions,now can only set six attributions:
//red,green,blue,alpha,depth,stencil
GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8};

GLView::setGLContextAttrs(glContextAttrs);

}
//