i915: Needn't adjust pixel centers. fix #12944

This commit is contained in:
Xiang, Haihao 2008-01-02 11:38:51 +08:00
parent 524304c9b8
commit 60d762aa62
2 changed files with 4 additions and 4 deletions

View File

@ -253,10 +253,10 @@ intelCalcViewport(GLcontext * ctx)
}
m[MAT_SX] = v[MAT_SX];
m[MAT_TX] = v[MAT_TX] + SUBPIXEL_X;
m[MAT_TX] = v[MAT_TX];
m[MAT_SY] = v[MAT_SY] * yScale;
m[MAT_TY] = v[MAT_TY] * yScale + yBias + SUBPIXEL_Y;
m[MAT_TY] = v[MAT_TY] * yScale + yBias;
m[MAT_SZ] = v[MAT_SZ] * depthScale;
m[MAT_TZ] = v[MAT_TZ] * depthScale;

View File

@ -247,8 +247,8 @@ intel_draw_point(struct intel_context *intel, intelVertexPtr v0)
int j;
/* Adjust for sub pixel position -- still required for conform. */
*(float *) &vb[0] = v0->v.x - 0.125;
*(float *) &vb[1] = v0->v.y - 0.125;
*(float *) &vb[0] = v0->v.x;
*(float *) &vb[1] = v0->v.y;
for (j = 2; j < vertsize; j++)
vb[j] = v0->ui[j];
}