mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Remove calls to gl.getError in release builds (#1583)
This slows down the web version a lot, especially on some browsers Publish new web demo
This commit is contained in:
@@ -75,7 +75,7 @@ impl PostProcess {
|
||||
glow::UNSIGNED_BYTE,
|
||||
None,
|
||||
);
|
||||
check_for_gl_error!(&gl, "post process texture initialization");
|
||||
crate::check_for_gl_error_even_in_release!(&gl, "post process texture initialization");
|
||||
|
||||
gl.framebuffer_texture_2d(
|
||||
glow::FRAMEBUFFER,
|
||||
@@ -160,7 +160,7 @@ impl PostProcess {
|
||||
gl.buffer_data_u8_slice(glow::ELEMENT_ARRAY_BUFFER, &indices, glow::STATIC_DRAW);
|
||||
|
||||
gl.bind_buffer(glow::ELEMENT_ARRAY_BUFFER, None);
|
||||
check_for_gl_error!(&gl, "post process initialization");
|
||||
crate::check_for_gl_error_even_in_release!(&gl, "post process initialization");
|
||||
|
||||
Ok(PostProcess {
|
||||
gl,
|
||||
|
||||
Reference in New Issue
Block a user