Skip to content

Commit

Permalink
fix: Zero out uniform arrays by default
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Sep 3, 2024
1 parent eed1822 commit dbd0493
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/vgl/uniform.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ vgl.uniform = function (type, name) {

var m_type = type,
m_name = name,
m_dataArray = [];

m_dataArray.length = this.getTypeNumberOfComponents(m_type);
m_dataArray = new Array(this.getTypeNumberOfComponents(m_type)).fill(0);

/**
* Get name of the uniform.
Expand Down

0 comments on commit dbd0493

Please sign in to comment.