Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17118

How to Fix Color Banding on Mac OS X

$
0
0

@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:

  1. Maybe the context is not being applied and the default is being used?

    GLContextAttrs GLView::_glContextAttrs = {5, 6, 5, 0, 16, 0};

  2. 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

Read full topic


Viewing all articles
Browse latest Browse all 17118

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>