Changeset 3598 for trunk/src/opengl/mesa/masking.c
- Timestamp:
- May 23, 2000, 10:41:28 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/masking.c
r2962 r3598 1 /* $Id: masking.c,v 1. 2 2000-03-01 18:49:31jeroen Exp $ */1 /* $Id: masking.c,v 1.3 2000-05-23 20:40:40 jeroen Exp $ */ 2 2 3 3 /* 4 4 * Mesa 3-D graphics library 5 * Version: 3. 15 * Version: 3.3 6 6 * 7 7 * Copyright (C) 1999 Brian Paul All Rights Reserved. … … 37 37 #include "all.h" 38 38 #else 39 #ifndef XFree86Server 40 #include <string.h> 41 #include <stdio.h> 42 #else 43 #include "GL/xf86glx.h" 44 #endif 39 #include "glheader.h" 45 40 #include "alphabuf.h" 46 41 #include "types.h" … … 55 50 56 51 57 void gl_IndexMask( GLcontext *ctx, GLuint mask ) 52 void 53 _mesa_IndexMask( GLuint mask ) 58 54 { 55 GET_CURRENT_CONTEXT(ctx); 59 56 ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glIndexMask"); 60 57 ctx->Color.IndexMask = mask; … … 64 61 65 62 66 void gl_ColorMask( GLcontext *ctx, GLboolean red, GLboolean green, 67 GLboolean blue, GLboolean alpha ) 63 void 64 _mesa_ColorMask( GLboolean red, GLboolean green, 65 GLboolean blue, GLboolean alpha ) 68 66 { 67 GET_CURRENT_CONTEXT(ctx); 69 68 ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glColorMask"); 70 69 … … 99 98 GLuint i; 100 99 101 gl_read_rgba_span( ctx, n, x, y, dest );100 gl_read_rgba_span( ctx, ctx->DrawBuffer, n, x, y, dest ); 102 101 103 102 for (i=0; i<n; i++) { … … 144 143 GLuint msrc, mdest; 145 144 146 gl_read_index_span( ctx, n, x, y, fbindexes );145 gl_read_index_span( ctx, ctx->DrawBuffer, n, x, y, fbindexes ); 147 146 148 147 msrc = ctx->Color.IndexMask;
Note:
See TracChangeset
for help on using the changeset viewer.