Skip to content

Commit 89dcb96

Browse files
committed
gl: fix disembodied player model found in #141
Regression introduced in #262 by the glow port, correct the raw size to account for the matrix. See #141 (comment)
1 parent 0aa062f commit 89dcb96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gl/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ impl Uniform {
624624

625625
#[allow(clippy::missing_safety_doc)]
626626
pub unsafe fn set_float_multi_raw(&self, data: *const f32, len: usize) {
627-
glow_context().uniform_4_f32_slice(Some(&self.0), std::slice::from_raw_parts(data, len));
627+
glow_context().uniform_4_f32_slice(Some(&self.0), std::slice::from_raw_parts(data, len * 4 * 4));
628628
}
629629

630630
pub fn set_matrix4(&self, m: &::cgmath::Matrix4<f32>) {

0 commit comments

Comments
 (0)