mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
added some handy debug code (disabled)
This commit is contained in:
parent
cec85c778f
commit
dfbb84ea2c
1 changed files with 25 additions and 0 deletions
|
|
@ -148,6 +148,18 @@ static GLboolean run_vertex_stage( GLcontext *ctx,
|
|||
VB->EyePtr = TransformRaw( &store->eye,
|
||||
ctx->ModelviewMatrixStack.Top,
|
||||
VB->ObjPtr);
|
||||
#if 0
|
||||
/* examine some eye coordinates */
|
||||
{
|
||||
GLuint i;
|
||||
GLfloat *v = VB->EyePtr->start;
|
||||
for (i = 0; i < 4; i++) {
|
||||
_mesa_printf("eye[%d] = %g, %g, %g, %g\n",
|
||||
i, v[0], v[1], v[2], v[3]);
|
||||
v += 4;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
VB->ClipPtr = TransformRaw( &store->clip,
|
||||
|
|
@ -169,6 +181,19 @@ static GLboolean run_vertex_stage( GLcontext *ctx,
|
|||
break;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* examine some clip coordinates */
|
||||
{
|
||||
GLuint i;
|
||||
GLfloat *v = VB->ClipPtr->start;
|
||||
for (i = 0; i < 4; i++) {
|
||||
_mesa_printf("clip[%d] = %g, %g, %g, %g\n",
|
||||
i, v[0], v[1], v[2], v[3]);
|
||||
v += 4;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Cliptest and perspective divide. Clip functions must clear
|
||||
* the clipmask.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue