Commit be1086b8 authored by Sam Lantinga's avatar Sam Lantinga

*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40707
parent 4f229b87
...@@ -42,29 +42,9 @@ int Mac_GL_Init(_THIS) ...@@ -42,29 +42,9 @@ int Mac_GL_Init(_THIS)
GLboolean noerr; GLboolean noerr;
attributes[i++] = AGL_RGBA; attributes[i++] = AGL_RGBA;
if ( this->gl_config.double_buffer ) {
attributes[i++] = AGL_DOUBLEBUFFER;
}
if ( this->gl_config.stereo ) {
attributes[i++] = AGL_STEREO;
}
if ( this->gl_config.multisamplebuffers != 0 ) {
attributes[i++] = AGL_SAMPLE_BUFFERS_ARB;
attributes[i++] = this->gl_config.multisamplebuffers;
}
if ( this->gl_config.multisamplesamples != 0 ) {
attributes[i++] = AGL_SAMPLES_ARB;
attributes[i++] = this->gl_config.multisamplesamples;
}
if ( this->gl_config.depth_size != 0 ) {
attributes[i++] = AGL_DEPTH_SIZE;
attributes[i++] = this->gl_config.depth_size;
}
if ( this->gl_config.red_size != 0 && if ( this->gl_config.red_size != 0 &&
this->gl_config.blue_size != 0 && this->gl_config.blue_size != 0 &&
this->gl_config.green_size != 0 ) { this->gl_config.green_size != 0 ) {
attributes[i++] = AGL_RED_SIZE; attributes[i++] = AGL_RED_SIZE;
attributes[i++] = this->gl_config.red_size; attributes[i++] = this->gl_config.red_size;
attributes[i++] = AGL_GREEN_SIZE; attributes[i++] = AGL_GREEN_SIZE;
...@@ -74,6 +54,13 @@ int Mac_GL_Init(_THIS) ...@@ -74,6 +54,13 @@ int Mac_GL_Init(_THIS)
attributes[i++] = AGL_ALPHA_SIZE; attributes[i++] = AGL_ALPHA_SIZE;
attributes[i++] = this->gl_config.alpha_size; attributes[i++] = this->gl_config.alpha_size;
} }
if ( this->gl_config.double_buffer ) {
attributes[i++] = AGL_DOUBLEBUFFER;
}
if ( this->gl_config.depth_size != 0 ) {
attributes[i++] = AGL_DEPTH_SIZE;
attributes[i++] = this->gl_config.depth_size;
}
if ( this->gl_config.stencil_size != 0 ) { if ( this->gl_config.stencil_size != 0 ) {
attributes[i++] = AGL_STENCIL_SIZE; attributes[i++] = AGL_STENCIL_SIZE;
attributes[i++] = this->gl_config.stencil_size; attributes[i++] = this->gl_config.stencil_size;
...@@ -91,6 +78,19 @@ int Mac_GL_Init(_THIS) ...@@ -91,6 +78,19 @@ int Mac_GL_Init(_THIS)
attributes[i++] = AGL_ACCUM_ALPHA_SIZE; attributes[i++] = AGL_ACCUM_ALPHA_SIZE;
attributes[i++] = this->gl_config.accum_alpha_size; attributes[i++] = this->gl_config.accum_alpha_size;
} }
if ( this->gl_config.stereo ) {
attributes[i++] = AGL_STEREO;
}
#if defined(AGL_SAMPLE_BUFFERS_ARB) && defined(AGL_SAMPLES_ARB)
if ( this->gl_config.multisamplebuffers != 0 ) {
attributes[i++] = AGL_SAMPLE_BUFFERS_ARB;
attributes[i++] = this->gl_config.multisamplebuffers;
}
if ( this->gl_config.multisamplesamples != 0 ) {
attributes[i++] = AGL_SAMPLES_ARB;
attributes[i++] = this->gl_config.multisamplesamples;
}
#endif
attributes[i++] = AGL_ALL_RENDERERS; attributes[i++] = AGL_ALL_RENDERERS;
attributes[i] = AGL_NONE; attributes[i] = AGL_NONE;
......
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