diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c index ff19d1f6758..7e115eb9b13 100644 --- a/src/mesa/main/points.c +++ b/src/mesa/main/points.c @@ -36,6 +36,12 @@ #include "api_exec_decl.h" +static void +is_point_size_one(struct gl_context *ctx) +{ + ctx->PointSizeIsOne = ctx->Point.Size == 1.0; +} + /** * Set current point size. * \param size point diameter in pixels @@ -54,7 +60,7 @@ point_size(struct gl_context *ctx, GLfloat size, bool no_error) FLUSH_VERTICES(ctx, _NEW_POINT, GL_POINT_BIT); ctx->Point.Size = size; - ctx->PointSizeIsOne = ctx->Point.Size == 1.0; + is_point_size_one(ctx); }