Ignore:
Timestamp:
Mar 1, 2000, 7:50:02 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/mesa/glmisc.c

    r2938 r2962  
    1 /* $Id: glmisc.c,v 1.1 2000-02-29 00:50:04 sandervl Exp $ */
     1/* $Id: glmisc.c,v 1.2 2000-03-01 18:49:29 jeroen Exp $ */
    22
    33/*
     
    5656{
    5757   ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glClearIndex");
     58
    5859   ctx->Color.ClearIndex = (GLuint) c;
    5960   if (!ctx->Visual->RGBAflag) {
     
    8384   }
    8485}
    85 
    86 
    87 
    8886
    8987/*
     
    126124         gl_mask_rgba_span( ctx, width, x, y, rgba );
    127125         (*ctx->Driver.WriteRGBASpan)( ctx, width, x, y,
    128                                        (const GLubyte (*)[4])rgba, NULL );
     126                                       (const GLubyte (*)[4])rgba, NULL );
    129127      }
    130128   }
     
    153151static void clear_color_buffers( GLcontext *ctx )
    154152{
    155 
    156153   if (ctx->RasterMask & MULTI_DRAW_BIT) {
    157154      GLuint bufferBit;
     
    200197   else {
    201198      /* normal case:  clear exactly one color buffer */
    202 
     199#ifndef DIVE
    203200      if (ctx->Color.SWmasking) {
    204201         clear_color_buffer_with_masking( ctx );
     
    213210                                      x, y, width, height );
    214211      }
     212#endif
    215213   }
    216214}
     
    281279   /* Don't compile into display list */
    282280   ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glFinish");
     281
    283282   if (ctx->Driver.Finish) {
    284283      (*ctx->Driver.Finish)( ctx );
     
    286285}
    287286
    288 
    289 
    290287void gl_Flush( GLcontext *ctx )
    291288{
    292289   /* Don't compile into display list */
    293290   ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glFlush");
     291
    294292   if (ctx->Driver.Flush) {
    295293      (*ctx->Driver.Flush)( ctx );
    296294   }
    297295}
    298 
    299 
    300296
    301297GLboolean gl_Hint( GLcontext *ctx, GLenum target, GLenum mode )
     
    337333   case GL_ALWAYS_FAST_HINT_PGI:
    338334      if (mode) {
    339         ctx->Hint.AllowDrawWin = GL_TRUE;
    340         ctx->Hint.AllowDrawSpn = GL_FALSE;
    341         ctx->Hint.AllowDrawMem = GL_FALSE;
     335        ctx->Hint.AllowDrawWin = GL_TRUE;
     336        ctx->Hint.AllowDrawSpn = GL_FALSE;
     337        ctx->Hint.AllowDrawMem = GL_FALSE;
    342338      } else {
    343         ctx->Hint.AllowDrawWin = GL_TRUE;
    344         ctx->Hint.AllowDrawSpn = GL_TRUE;
    345         ctx->Hint.AllowDrawMem = GL_TRUE;
     339        ctx->Hint.AllowDrawWin = GL_TRUE;
     340        ctx->Hint.AllowDrawSpn = GL_TRUE;
     341        ctx->Hint.AllowDrawMem = GL_TRUE;
    346342      }
    347343      break;
     
    386382   return GL_TRUE;
    387383}
    388 
    389 
    390384
    391385void gl_DrawBuffer( GLcontext *ctx, GLenum mode )
     
    538532}
    539533
    540 
    541 
    542534void gl_ReadBuffer( GLcontext *ctx, GLenum mode )
    543535{
Note: See TracChangeset for help on using the changeset viewer.