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,
height,
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,
});
sender.send(&pixels).unwrap();