Changeset 2962 for trunk/src/opengl/mesa/glmisc.c
- Timestamp:
- Mar 1, 2000, 7:50:02 PM (25 years ago)
- 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 sandervlExp $ */1 /* $Id: glmisc.c,v 1.2 2000-03-01 18:49:29 jeroen Exp $ */ 2 2 3 3 /* … … 56 56 { 57 57 ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glClearIndex"); 58 58 59 ctx->Color.ClearIndex = (GLuint) c; 59 60 if (!ctx->Visual->RGBAflag) { … … 83 84 } 84 85 } 85 86 87 88 86 89 87 /* … … 126 124 gl_mask_rgba_span( ctx, width, x, y, rgba ); 127 125 (*ctx->Driver.WriteRGBASpan)( ctx, width, x, y, 128 126 (const GLubyte (*)[4])rgba, NULL ); 129 127 } 130 128 } … … 153 151 static void clear_color_buffers( GLcontext *ctx ) 154 152 { 155 156 153 if (ctx->RasterMask & MULTI_DRAW_BIT) { 157 154 GLuint bufferBit; … … 200 197 else { 201 198 /* normal case: clear exactly one color buffer */ 202 199 #ifndef DIVE 203 200 if (ctx->Color.SWmasking) { 204 201 clear_color_buffer_with_masking( ctx ); … … 213 210 x, y, width, height ); 214 211 } 212 #endif 215 213 } 216 214 } … … 281 279 /* Don't compile into display list */ 282 280 ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glFinish"); 281 283 282 if (ctx->Driver.Finish) { 284 283 (*ctx->Driver.Finish)( ctx ); … … 286 285 } 287 286 288 289 290 287 void gl_Flush( GLcontext *ctx ) 291 288 { 292 289 /* Don't compile into display list */ 293 290 ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glFlush"); 291 294 292 if (ctx->Driver.Flush) { 295 293 (*ctx->Driver.Flush)( ctx ); 296 294 } 297 295 } 298 299 300 296 301 297 GLboolean gl_Hint( GLcontext *ctx, GLenum target, GLenum mode ) … … 337 333 case GL_ALWAYS_FAST_HINT_PGI: 338 334 if (mode) { 339 340 341 335 ctx->Hint.AllowDrawWin = GL_TRUE; 336 ctx->Hint.AllowDrawSpn = GL_FALSE; 337 ctx->Hint.AllowDrawMem = GL_FALSE; 342 338 } else { 343 344 345 339 ctx->Hint.AllowDrawWin = GL_TRUE; 340 ctx->Hint.AllowDrawSpn = GL_TRUE; 341 ctx->Hint.AllowDrawMem = GL_TRUE; 346 342 } 347 343 break; … … 386 382 return GL_TRUE; 387 383 } 388 389 390 384 391 385 void gl_DrawBuffer( GLcontext *ctx, GLenum mode ) … … 538 532 } 539 533 540 541 542 534 void gl_ReadBuffer( GLcontext *ctx, GLenum mode ) 543 535 {
Note:
See TracChangeset
for help on using the changeset viewer.