Commit b869e34a authored by Chad Versace's avatar Chad Versace

glut_waffle: Always choose a config with RGBA

It is impossible to not request RGBA because GLUT_RGB and GLUT_RGBA are
both 0. That is, (display_mode & (GLUT_RGB | GLUT_RGBA)) is unconditonally
true.
Signed-off-by: default avatarChad Versace <chad@chad.versace.us>
parent ef949d7e
......@@ -221,15 +221,14 @@ glutChooseConfig(void)
ADD_ATTR(WAFFLE_CONTEXT_API, _glut->waffle_context_api);
if (_glut->display_mode & (GLUT_RGB | GLUT_RGBA)) {
ADD_ATTR(WAFFLE_RED_SIZE, 1);
ADD_ATTR(WAFFLE_GREEN_SIZE, 1);
ADD_ATTR(WAFFLE_BLUE_SIZE, 1);
}
if (_glut->display_mode & (GLUT_ALPHA | GLUT_RGBA)) {
ADD_ATTR(WAFFLE_ALPHA_SIZE, 1);
}
/* It is impossible to not request RGBA because GLUT_RGB and
* GLUT_RGBA are both 0. That is, (display_mode & (GLUT_RGB
* | GLUT_RGBA)) is unconditonally true.
*/
ADD_ATTR(WAFFLE_RED_SIZE, 1);
ADD_ATTR(WAFFLE_GREEN_SIZE, 1);
ADD_ATTR(WAFFLE_BLUE_SIZE, 1);
ADD_ATTR(WAFFLE_ALPHA_SIZE, 1);
if (_glut->display_mode & GLUT_DEPTH) {
ADD_ATTR(WAFFLE_DEPTH_SIZE, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment