Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/widget/glow_canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ unsafe fn init_gl_resources(gl: &eframe::glow::Context) -> OpenGLResources {
let vert = gl.create_shader(glow::VERTEX_SHADER).expect("create vert");
debug_assert_eq!(gl.get_error(), 0);
let source = "
#version 330

#version 310 es
precision mediump float;
uniform vec2 u_screen_size;
in vec2 a_pos;
in vec2 a_tc;
Expand Down Expand Up @@ -384,7 +384,8 @@ void main() {
.create_shader(glow::FRAGMENT_SHADER)
.expect("crate fragment");
let source = "
#version 330
#version 310 es
precision mediump float;

uniform sampler2D u_sampler;

Expand Down