mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 07:37:24 +00:00
Fix rendering OpenGL texture import example with some GL drivers
Require high floating point precision for the texture import example
This commit is contained in:
parent
4ab19f3011
commit
c8185a9927
2 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ private:
|
||||||
|
|
||||||
const GLchar *const fragment_shader =
|
const GLchar *const fragment_shader =
|
||||||
R"(#version 100
|
R"(#version 100
|
||||||
precision mediump float;
|
precision highp float;
|
||||||
varying vec2 frag_position;
|
varying vec2 frag_position;
|
||||||
uniform vec3 selected_light_color;
|
uniform vec3 selected_light_color;
|
||||||
uniform float iTime;
|
uniform float iTime;
|
||||||
|
|
|
@ -171,7 +171,7 @@ impl DemoRenderer {
|
||||||
gl_Position = vec4(position, 0.0, 1.0);
|
gl_Position = vec4(position, 0.0, 1.0);
|
||||||
}"#,
|
}"#,
|
||||||
r#"#version 100
|
r#"#version 100
|
||||||
precision mediump float;
|
precision highp float;
|
||||||
varying vec2 frag_position;
|
varying vec2 frag_position;
|
||||||
uniform vec3 selected_light_color;
|
uniform vec3 selected_light_color;
|
||||||
uniform float iTime;
|
uniform float iTime;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue