Report all messages processed by the webgl thread.

This commit is contained in:
Josh Matthews 2019-01-31 14:55:25 -05:00
parent f3f20e6c35
commit 25a61f3783
3 changed files with 36 additions and 6 deletions

View file

@ -117,6 +117,7 @@ impl<VR: WebVRRenderHandler + 'static> WebGLThread<VR> {
/// Handles a generic WebGLMsg message
#[inline]
fn handle_msg(&mut self, msg: WebGLMsg, webgl_chan: &WebGLChan) -> bool {
trace!("processing {:?}", msg);
match msg {
WebGLMsg::CreateContext(version, size, attributes, result_sender) => {
let result = self.create_webgl_context(version, size, attributes);
@ -1104,7 +1105,7 @@ impl WebGLImpl {
alpha_treatment,
y_axis_treatment,
pixel_format,
Cow::Borrowed(data),
Cow::Borrowed(&*data),
);
ctx.gl()
@ -1144,7 +1145,7 @@ impl WebGLImpl {
alpha_treatment,
y_axis_treatment,
pixel_format,
Cow::Borrowed(data),
Cow::Borrowed(&*data),
);
ctx.gl()