From 89e6f4820a0efc607961e7f8e99aa80aab1cb97c Mon Sep 17 00:00:00 2001 From: thewierdnut <9004013+thewierdnut@users.noreply.github.com> Date: Sun, 29 Sep 2024 12:36:12 -0500 Subject: [PATCH] Increase line shader precision It was drawing garbage scrollbars if the width vs height ratio was too extreme. --- source/LineShader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/LineShader.cpp b/source/LineShader.cpp index 2d4052bef81b..104e0a2c2226 100644 --- a/source/LineShader.cpp +++ b/source/LineShader.cpp @@ -43,7 +43,7 @@ void LineShader::Init() { static const char *vertexCode = "// vertex line shader\n" - "precision mediump float;\n" + "precision highp float;\n" "precision mediump int;\n" "uniform vec2 scale;\n" @@ -80,7 +80,7 @@ void LineShader::Init() static const char *fragmentCode = "// fragment line shader\n" - "precision mediump float;\n" + "precision highp float;\n" "precision mediump int;\n" "uniform vec2 start;\n"