summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2023-08-22 14:46:08 -0400
committer AJR <ajrhacker@users.noreply.github.com>2023-08-22 14:48:18 -0400
commit4727a73d7a21c5e58fdf09336d9f0dabac30e514 (patch)
tree824015972977d107734ad223e9d5a80e306563a4
parentd22fd9d9dfaaf0cd23e19a542f51c67621a41084 (diff)
render/drawogl.cpp: Size point primitives properly. This fixes -beam_dot_size being effectively ignored by this renderer.
-rw-r--r--src/osd/modules/render/drawogl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osd/modules/render/drawogl.cpp b/src/osd/modules/render/drawogl.cpp
index b5cc9d0421a..bc7fcf9a959 100644
--- a/src/osd/modules/render/drawogl.cpp
+++ b/src/osd/modules/render/drawogl.cpp
@@ -1354,7 +1354,10 @@ int renderer_ogl::draw(const int update)
if(pendingPrimitive!=curPrimitive)
{
- glLineWidth(prim.width);
+ if (curPrimitive==GL_POINTS)
+ glPointSize(prim.width);
+ else
+ glLineWidth(prim.width);
glBegin(curPrimitive);
pendingPrimitive=curPrimitive;
}