Fix the data type sent in tex_sub_image_2d

This commit is contained in:
Anthony Ramine 2018-11-15 10:32:47 +01:00
parent 65d1b11929
commit 1675991b12

View file

@ -825,7 +825,9 @@ impl WebGLRenderingContext {
width, width,
height, height,
format: format.as_gl_constant(), format: format.as_gl_constant(),
data_type: data_type.as_gl_constant(), data_type: self
.extension_manager
.effective_type(data_type.as_gl_constant()),
receiver, receiver,
}); });
sender.send(&pixels).unwrap(); sender.send(&pixels).unwrap();