diff --git a/examples/opengl_texture/main.cpp b/examples/opengl_texture/main.cpp index 885f395b4..cc1feb0a2 100644 --- a/examples/opengl_texture/main.cpp +++ b/examples/opengl_texture/main.cpp @@ -175,7 +175,7 @@ private: const GLchar *const fragment_shader = R"(#version 100 - precision mediump float; + precision highp float; varying vec2 frag_position; uniform vec3 selected_light_color; uniform float iTime; diff --git a/examples/opengl_texture/main.rs b/examples/opengl_texture/main.rs index f5582e458..0f557fa4d 100644 --- a/examples/opengl_texture/main.rs +++ b/examples/opengl_texture/main.rs @@ -171,7 +171,7 @@ impl DemoRenderer { gl_Position = vec4(position, 0.0, 1.0); }"#, r#"#version 100 - precision mediump float; + precision highp float; varying vec2 frag_position; uniform vec3 selected_light_color; uniform float iTime;