Skip to content

Commit

Permalink
Add a precision to the fragment shader (flutter#54109)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-ancell authored and GitHub Actions Bot committed Aug 12, 2024
1 parent c4b0a37 commit f07ed20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shell/platform/linux/fl_renderer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ static const char* vertex_shader_src =

// Fragment shader to draw Flutter window contents.
static const char* fragment_shader_src =
"#ifdef GL_ES\n"
"precision mediump float;\n"
"#endif\n"
"\n"
"uniform sampler2D texture;\n"
"varying vec2 texcoord;\n"
"\n"
Expand Down

0 comments on commit f07ed20

Please sign in to comment.