Skip to content

Commit

Permalink
Increase line shader precision
Browse files Browse the repository at this point in the history
It was drawing garbage scrollbars if the width vs height ratio was too
extreme.
  • Loading branch information
thewierdnut committed Sep 29, 2024
1 parent 9f6ed8f commit 89e6f48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/LineShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 89e6f48

Please sign in to comment.