projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4830cc7
)
mesa: break out PointSizeIsOne setting to util function
author
Mike Blumenkrantz
<michael.blumenkrantz@gmail.com>
Mon, 20 Jun 2022 18:35:35 +0000
(14:35 -0400)
committer
Marge Bot
<emma+marge@anholt.net>
Wed, 22 Jun 2022 13:27:29 +0000
(13:27 +0000)
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17145>
src/mesa/main/points.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/points.c
b/src/mesa/main/points.c
index
ff19d1f
..
7e115eb
100644
(file)
--- 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)
;
}