Original commit: e4904224c5
This commit is contained in:
Adam Obuchowicz 2020-04-30 14:42:18 +02:00 committed by GitHub
parent ef5cb279a3
commit 4b5a0dc0c0
3 changed files with 14 additions and 3 deletions

View File

@ -267,4 +267,4 @@ impl GlyphSystem {
}
const BEFORE_MAIN : &str = include_str!("glyph.glsl");
const MAIN : &str = "output_color = color_from_msdf(); output_id=uvec4(0,0,0,0);";
const MAIN : &str = "output_color = color_from_msdf(); output_id=vec4(0.0,0.0,0.0,0.0);";

View File

@ -74,9 +74,13 @@ impl GraphEditorIntegration {
let stream = this.controller.subscribe();
let weak = Rc::downgrade(this);
let handler = process_stream_with_handle(stream,weak,move |notification,this| {
match notification {
notification::Graph::Invalidate => this.invalidate_graph().unwrap(), // FIXME unwrap
let result = match notification {
notification::Graph::Invalidate => this.invalidate_graph(),
};
if let Err(err) = result {
error!(this.logger,"Error while updating graph after receiving {notification:?} \
from controller: {err}");
}
futures::future::ready(())
});
executor::global::spawn(handler);

View File

@ -208,6 +208,13 @@ macro_rules! warning {
};
}
#[macro_export]
macro_rules! error {
($($toks:tt)*) => {
$crate::log_template! {error $($toks)*}
};
}
#[macro_export]
macro_rules! internal_warning {
($($toks:tt)*) => {