Fixed RGB data buffer size (#615)

This commit is contained in:
Alexander E. Patrakov 2016-07-31 21:55:04 +05:00
parent da82b3426c
commit 6024677ffa
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ var Display;
// NB(directxman12): it's technically more performant here to use preallocated arrays, // NB(directxman12): it's technically more performant here to use preallocated arrays,
// but it's a lot of extra work for not a lot of payoff -- if we're using the render queue, // but it's a lot of extra work for not a lot of payoff -- if we're using the render queue,
// this probably isn't getting called *nearly* as much // this probably isn't getting called *nearly* as much
var new_arr = new Uint8Array(width * height * 4); var new_arr = new Uint8Array(width * height * 3);
new_arr.set(new Uint8Array(arr.buffer, 0, new_arr.length)); new_arr.set(new Uint8Array(arr.buffer, 0, new_arr.length));
this.renderQ_push({ this.renderQ_push({
'type': 'blitRgb', 'type': 'blitRgb',