diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-02-17 04:26:42 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-02-17 04:26:42 +0000 |
commit | 4250c7acacc35f29a3716f96b8e4fa31d9d30d2b (patch) | |
tree | 816ac6d52518affbdf2b5ea1d6f95641e83a1e32 /src | |
parent | 5cd79f9267c5ce71d9fc3355ab0ba8fe5fdf636a (diff) |
some debug code
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/feedback.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/main/feedback.c b/src/mesa/main/feedback.c index 69b235a3e5..48c2ccbff3 100644 --- a/src/mesa/main/feedback.c +++ b/src/mesa/main/feedback.c @@ -126,8 +126,20 @@ void _mesa_feedback_vertex( GLcontext *ctx, GLfloat index, const GLfloat texcoord[4] ) { +#if 0 + { + /* snap window x, y to fractional pixel position */ + const GLint snapMask = ~((FIXED_ONE / (1 << SUB_PIXEL_BITS)) - 1); + GLfixed x, y; + x = FloatToFixed(win[0]) & snapMask; + y = FloatToFixed(win[1]) & snapMask; + FEEDBACK_TOKEN(ctx, FixedToFloat(x)); + FEEDBACK_TOKEN(ctx, FixedToFloat(y) ); + } +#else FEEDBACK_TOKEN( ctx, win[0] ); FEEDBACK_TOKEN( ctx, win[1] ); +#endif if (ctx->Feedback._Mask & FB_3D) { FEEDBACK_TOKEN( ctx, win[2] ); } |