720
723
void viaCalcViewport(GLcontext *ctx)
722
725
struct via_context *vmesa = VIA_CONTEXT(ctx);
723
729
const GLfloat *v = ctx->Viewport._WindowMap.m;
724
730
GLfloat *m = vmesa->ViewportMatrix.m;
726
732
/* See also via_translate_vertex.
732
738
m[MAT_SZ] = v[MAT_SZ] * (1.0 / vmesa->depth_max);
733
739
m[MAT_TZ] = v[MAT_TZ] * (1.0 / vmesa->depth_max);