i915: Round point sizes instead of truncate.
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 30 Nov 2009 01:43:38 +0000 (17:43 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 30 Nov 2009 01:43:38 +0000 (17:43 -0800)
src/mesa/drivers/dri/i915/i915_state.c

index 1ec84ef1167b1a443ebd687c97212390c04f07cb..86f37379dc4b3594596ba9176e31d0797bdc95d0 100644 (file)
@@ -585,7 +585,7 @@ i915PointSize(GLcontext * ctx, GLfloat size)
 {
    struct i915_context *i915 = I915_CONTEXT(ctx);
    int lis4 = i915->state.Ctx[I915_CTXREG_LIS4] & ~S4_POINT_WIDTH_MASK;
-   GLint point_size = (int) size;
+   GLint point_size = (int) round(size);
 
    DBG("%s\n", __FUNCTION__);