mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Reintroduce color fixes to WebGL1 backend, but only if sRGB textures are supported (#652)
Also removed the 300es shaders, as they'd be identical to the 100es ones.
This commit is contained in:
@@ -66,12 +66,12 @@ impl WebGl2Painter {
|
||||
let vert_shader = compile_shader(
|
||||
&gl,
|
||||
Gl::VERTEX_SHADER,
|
||||
include_str!("shader/main_vertex_300es.glsl"),
|
||||
include_str!("shader/main_vertex_100es.glsl"),
|
||||
)?;
|
||||
let frag_shader = compile_shader(
|
||||
&gl,
|
||||
Gl::FRAGMENT_SHADER,
|
||||
include_str!("shader/main_fragment_300es.glsl"),
|
||||
include_str!("shader/main_fragment_100es.glsl"),
|
||||
)?;
|
||||
|
||||
let program = link_program(&gl, [vert_shader, frag_shader].iter())?;
|
||||
@@ -555,12 +555,12 @@ impl PostProcess {
|
||||
let vert_shader = compile_shader(
|
||||
&gl,
|
||||
Gl::VERTEX_SHADER,
|
||||
include_str!("shader/post_vertex_300es.glsl"),
|
||||
include_str!("shader/post_vertex_100es.glsl"),
|
||||
)?;
|
||||
let frag_shader = compile_shader(
|
||||
&gl,
|
||||
Gl::FRAGMENT_SHADER,
|
||||
include_str!("shader/post_fragment_300es.glsl"),
|
||||
include_str!("shader/post_fragment_100es.glsl"),
|
||||
)?;
|
||||
let program = link_program(&gl, [vert_shader, frag_shader].iter())?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user