mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
remove set_buffer()
This commit is contained in:
parent
c958a9798a
commit
af39910f94
1 changed files with 7 additions and 22 deletions
|
|
@ -102,6 +102,13 @@ struct dmesa_context {
|
|||
};
|
||||
|
||||
|
||||
/*
|
||||
* SPAN FUNCTIONS
|
||||
* XXX: These need to be updated to take the new gl_renderbuffer parameter
|
||||
* introduced in Mesa 6.3. That parameter will indicate whether the front
|
||||
* or back color buffer is to be read/written.
|
||||
*/
|
||||
|
||||
#ifndef FX
|
||||
/****************************************************************************
|
||||
* Read/Write pixels
|
||||
|
|
@ -780,26 +787,6 @@ clear (GLcontext *ctx, GLbitfield mask, GLboolean all,
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
* This function is called to specify which buffer to read and write
|
||||
* for software rasterization (swrast) fallbacks. This doesn't necessarily
|
||||
* correspond to glDrawBuffer() or glReadBuffer() calls.
|
||||
*/
|
||||
static void
|
||||
set_buffer (GLcontext *ctx, GLframebuffer *colorBuffer, GLuint bufferBit)
|
||||
{
|
||||
/*
|
||||
* XXX todo - examine bufferBit and set read/write pointers
|
||||
*/
|
||||
/* Normally, we would have
|
||||
* ctx->Driver.ReadBuffer == set_read_buffer
|
||||
* ctx->Driver.DrawBuffer == set_draw_buffer
|
||||
* and make sure set_draw_buffer calls _swrast_DrawBuffer,
|
||||
* which in turn will call this routine via dd->SetBuffer.
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Return the width and height of the current buffer.
|
||||
* If anything special has to been done when the buffer/window is
|
||||
|
|
@ -929,8 +916,6 @@ dmesa_init_pointers (GLcontext *ctx)
|
|||
{
|
||||
struct swrast_device_driver *dd = _swrast_GetDeviceDriverReference(ctx);
|
||||
|
||||
dd->SetBuffer = set_buffer;
|
||||
|
||||
/* The span functions should be in `dmesa_update_state', but I'm
|
||||
* pretty sure they will never change during the life of the Visual
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue