diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 93d745851cd..eaeff2543f2 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -170,80 +170,6 @@ int MESA_DEBUG_FLAGS = 0; GLfloat _mesa_ubyte_to_float_color_tab[256]; -/**********************************************************************/ -/** \name GL Visual initialization */ -/**********************************************************************/ -/*@{*/ - - -/** - * Makes some sanity checks and fills in the fields of the struct - * gl_config object with the given parameters. If the caller needs to - * set additional fields, he should just probably init the whole - * gl_config object himself. - * - * \param dbFlag double buffering - * \param stereoFlag stereo buffer - * \param depthBits requested bits per depth buffer value. Any value in [0, 32] - * is acceptable but the actual depth type will be GLushort or GLuint as - * needed. - * \param stencilBits requested minimum bits per stencil buffer value - * \param accumRedBits, accumGreenBits, accumBlueBits, accumAlphaBits number - * of bits per color component in accum buffer. - * \param redBits number of bits per color component in frame buffer for RGB(A) - * mode. We always use 8 in core Mesa though. - * \param greenBits same as above. - * \param blueBits same as above. - * \param alphaBits same as above. - * \param numSamples number of samples per pixel. - * - * \return pointer to new struct gl_config or NULL if requested parameters - * can't be met. - * - * \return GL_TRUE on success, or GL_FALSE on failure. - */ -void -_mesa_initialize_visual( struct gl_config *vis, - GLboolean dbFlag, - GLboolean stereoFlag, - GLint redBits, - GLint greenBits, - GLint blueBits, - GLint alphaBits, - GLint depthBits, - GLint stencilBits, - GLint accumRedBits, - GLint accumGreenBits, - GLint accumBlueBits, - GLint accumAlphaBits, - GLuint numSamples ) -{ - assert(vis); - - vis->doubleBufferMode = dbFlag; - vis->stereoMode = stereoFlag; - - vis->redBits = redBits; - vis->greenBits = greenBits; - vis->blueBits = blueBits; - vis->alphaBits = alphaBits; - vis->rgbBits = redBits + greenBits + blueBits + alphaBits; - - vis->depthBits = depthBits; - vis->stencilBits = stencilBits; - - vis->accumRedBits = accumRedBits; - vis->accumGreenBits = accumGreenBits; - vis->accumBlueBits = accumBlueBits; - vis->accumAlphaBits = accumAlphaBits; - - vis->samples = numSamples; -} - - -/*@}*/ - - /**********************************************************************/ /** \name Context allocation, initialization, destroying * diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 3a27a21e777..f6bbb62796e 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -64,28 +64,6 @@ extern "C" { struct _glapi_table; -/** \name Visual-related functions */ -/*@{*/ - -extern void -_mesa_initialize_visual( struct gl_config *v, - GLboolean dbFlag, - GLboolean stereoFlag, - GLint redBits, - GLint greenBits, - GLint blueBits, - GLint alphaBits, - GLint depthBits, - GLint stencilBits, - GLint accumRedBits, - GLint accumGreenBits, - GLint accumBlueBits, - GLint accumAlphaBits, - GLuint numSamples ); - -/*@}*/ - - /** \name Context-related functions */ /*@{*/