Skip to content

Commit

Permalink
Merge 652f1f6 into 07d8a66
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Aug 28, 2019
2 parents 07d8a66 + 652f1f6 commit a34d468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/webgl/src/classes/buffer.js
Expand Up @@ -280,7 +280,7 @@ export default class Buffer extends Resource {
// Returns a short initial data array
getDebugData() {
if (!this.debugData) {
this.debugData = this.getData({length: DEBUG_DATA_LENGTH});
this.debugData = this.getData({length: Math.min(DEBUG_DATA_LENGTH, this.byteLength)});
return {data: this.debugData, changed: true};
}
return {data: this.debugData, changed: false};
Expand Down

0 comments on commit a34d468

Please sign in to comment.