equal
deleted
inserted
replaced
381 SDL_assert(size >= MAX_ATTRIBUTES); |
381 SDL_assert(size >= MAX_ATTRIBUTES); |
382 |
382 |
383 /* Setup our GLX attributes according to the gl_config. */ |
383 /* Setup our GLX attributes according to the gl_config. */ |
384 if( for_FBConfig ) { |
384 if( for_FBConfig ) { |
385 attribs[i++] = GLX_RENDER_TYPE; |
385 attribs[i++] = GLX_RENDER_TYPE; |
386 attribs[i++] = GLX_RGBA_BIT; |
386 attribs[i++] = GLX_RGBA_BIT; |
387 } else { |
387 } else { |
388 attribs[i++] = GLX_RGBA; |
388 attribs[i++] = GLX_RGBA; |
389 } |
389 } |
390 attribs[i++] = GLX_RED_SIZE; |
390 attribs[i++] = GLX_RED_SIZE; |
391 attribs[i++] = _this->gl_config.red_size; |
391 attribs[i++] = _this->gl_config.red_size; |
399 attribs[i++] = _this->gl_config.alpha_size; |
399 attribs[i++] = _this->gl_config.alpha_size; |
400 } |
400 } |
401 |
401 |
402 if (_this->gl_config.double_buffer) { |
402 if (_this->gl_config.double_buffer) { |
403 attribs[i++] = GLX_DOUBLEBUFFER; |
403 attribs[i++] = GLX_DOUBLEBUFFER; |
404 if( for_FBConfig ) |
404 if( for_FBConfig ) { |
405 attribs[i++] = True; |
405 attribs[i++] = True; |
|
406 } |
406 } |
407 } |
407 |
408 |
408 attribs[i++] = GLX_DEPTH_SIZE; |
409 attribs[i++] = GLX_DEPTH_SIZE; |
409 attribs[i++] = _this->gl_config.depth_size; |
410 attribs[i++] = _this->gl_config.depth_size; |
410 |
411 |
433 attribs[i++] = _this->gl_config.accum_alpha_size; |
434 attribs[i++] = _this->gl_config.accum_alpha_size; |
434 } |
435 } |
435 |
436 |
436 if (_this->gl_config.stereo) { |
437 if (_this->gl_config.stereo) { |
437 attribs[i++] = GLX_STEREO; |
438 attribs[i++] = GLX_STEREO; |
438 if( for_FBConfig ) |
439 if( for_FBConfig ) { |
439 attribs[i++] = True; |
440 attribs[i++] = True; |
|
441 } |
440 } |
442 } |
441 |
443 |
442 if (_this->gl_config.multisamplebuffers) { |
444 if (_this->gl_config.multisamplebuffers) { |
443 attribs[i++] = GLX_SAMPLE_BUFFERS_ARB; |
445 attribs[i++] = GLX_SAMPLE_BUFFERS_ARB; |
444 attribs[i++] = _this->gl_config.multisamplebuffers; |
446 attribs[i++] = _this->gl_config.multisamplebuffers; |