diff options
author | Brian Paul <[email protected]> | 1999-11-25 17:36:48 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 1999-11-25 17:36:48 +0000 |
commit | cea0e8e6700e871bb9bcb334cb75fbfbfcdfd702 (patch) | |
tree | 34719520e5e96ae80984096c01695b545332d736 /src/mesa/drivers/osmesa | |
parent | b6709c84722198599688a8154ea20620b207ab79 (diff) |
replaced Driver.SetBuffer() with SetDrawBuffer() and SetReadBuffer()
Diffstat (limited to 'src/mesa/drivers/osmesa')
-rw-r--r-- | src/mesa/drivers/osmesa/osmesa.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index a0bb746d007..e5dca912504 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1,4 +1,4 @@ -/* $Id: osmesa.c,v 1.3 1999/11/11 01:28:41 brianp Exp $ */ +/* $Id: osmesa.c,v 1.4 1999/11/25 17:37:00 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -541,7 +541,7 @@ GLboolean GLAPIENTRY OSMesaGetDepthBuffer( OSMesaContext c, GLint *width, GLint -static GLboolean set_buffer( GLcontext *ctx, GLenum mode ) +static GLboolean set_draw_buffer( GLcontext *ctx, GLenum mode ) { (void) ctx; if (mode==GL_FRONT_LEFT) { @@ -553,6 +553,14 @@ static GLboolean set_buffer( GLcontext *ctx, GLenum mode ) } +static void set_read_buffer( GLcontext *ctx, GLframebuffer *buffer, GLenum mode ) +{ + /* separate read buffer not supported */ + ASSERT(buffer == ctx->DrawBuffer); + ASSERT(mode == GL_FRONT_LEFT); +} + + static void clear_index( GLcontext *ctx, GLuint index ) { OSMesaContext osmesa = (OSMesaContext) ctx->DriverCtx; @@ -1539,7 +1547,8 @@ static void osmesa_update_state( GLcontext *ctx ) ctx->Driver.GetString = get_string; ctx->Driver.UpdateState = osmesa_update_state; - ctx->Driver.SetBuffer = set_buffer; + ctx->Driver.SetDrawBuffer = set_draw_buffer; + ctx->Driver.SetReadBuffer = set_read_buffer; ctx->Driver.Color = set_color; ctx->Driver.Index = set_index; ctx->Driver.ClearIndex = clear_index; |