1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-28 07:23:13 -04:00

add color test window to troubleshoot your Egui painter backend

egui_glium passes the test, but the egui_web WebGL painter fails it.
This commit is contained in:
Emil Ernerfeldt
2020-09-13 09:28:54 +02:00
parent d49aec4079
commit 1069ad8496
11 changed files with 490 additions and 27 deletions

View File

@@ -207,6 +207,7 @@ impl Painter {
gl.bind_texture(Gl::TEXTURE_2D, Some(&self.egui_texture));
// TODO: https://developer.mozilla.org/en-US/docs/Web/API/EXT_sRGB
// https://www.khronos.org/registry/webgl/extensions/EXT_sRGB/
let level = 0;
let internal_format = Gl::RGBA;
let border = 0;