src/video/wincommon/SDL_wingl.c
changeset 450 8a43e0cbf02f
parent 373 c638fde8a824
child 453 a6fa62b1be09
     1.1 --- a/src/video/wincommon/SDL_wingl.c	Mon Aug 19 03:40:44 2002 +0000
     1.2 +++ b/src/video/wincommon/SDL_wingl.c	Mon Aug 19 17:58:08 2002 +0000
     1.3 @@ -106,6 +106,9 @@
     1.4  		if ( this->gl_config.double_buffer ) {
     1.5  			GL_pfd.dwFlags |= PFD_DOUBLEBUFFER;
     1.6  		}
     1.7 +		if ( this->gl_config.stereo ) {
     1.8 +			GL_pfd.dwFlags |= PFD_STEREO;
     1.9 +		}
    1.10  		GL_pfd.iPixelType = PFD_TYPE_RGBA;
    1.11  		GL_pfd.cColorBits = this->gl_config.buffer_size;
    1.12  		GL_pfd.cRedBits = this->gl_config.red_size;
    1.13 @@ -242,6 +245,13 @@
    1.14  	    case SDL_GL_ACCUM_ALPHA_SIZE:
    1.15  		*value = GL_pfd.cAccumAlphaBits;
    1.16  		break;
    1.17 +	    case SDL_GL_STEREO:
    1.18 +		if ( GL_pfd.dwFlags & PFD_STEREO ) {
    1.19 +			*value = 1;
    1.20 +		} else {
    1.21 +			*value = 0;
    1.22 +		}
    1.23 +		break;
    1.24  	    default:
    1.25  		retval = -1;
    1.26  		break;