@natweiss wrote:
Hi all. I'm experiencing some color banding when running my game (Songbringer) on an older laptop. Here's the code I'm using to set up the OpenGL context attributes:
GLContextAttrs attrs = {8, 8, 8, 0, 32, 0}; GLView::setGLContextAttrs(attrs); Director::getInstance()->setOpenGLView(GLViewImpl::createWithRect(kTitle, rect, 1.0f));
Here's what the game looks like on a modern Macbook Pro:
And here's what it looks like on the older Macbook Pro:
Here's the information I could gather using OpenGL Extension Viewer:
Two theories:
Maybe the context is not being applied and the default is being used?
GLContextAttrs GLView::_glContextAttrs = {5, 6, 5, 0, 16, 0};
Maybe this older laptop can only support ARGB8888 and not RGBA8888 and GLFW or cocos2d-x doesn't support that?
Any insight on the matter would be greatly appreciated.
Posts: 1
Participants: 1