mesa: Remove unused _mesa_initialize_visual
Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14199>
This commit is contained in:
parent
cd38b6e2e8
commit
69aad97788
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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 */
|
||||
/*@{*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue