Skip to content

Commit

Permalink
forgot new
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Sep 19, 2023
1 parent 790ccb7 commit 83d1ea1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WGLMakie/src/Serialization.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function re_create_texture(old_texture, buffer, size) {
tex.format = old_texture.format;
tex.type = old_texture.type;
} else {
tex = THREE.DataTexture(
tex = new THREE.DataTexture(
buffer,
size[0],
size[1] ? size[1] : 1,
Expand Down
2 changes: 1 addition & 1 deletion WGLMakie/src/wglmakie.bundled.js
Original file line number Diff line number Diff line change
Expand Up @@ -20010,7 +20010,7 @@ function re_create_texture(old_texture, buffer, size) {
tex.format = old_texture.format;
tex.type = old_texture.type;
} else {
tex = mod.DataTexture(buffer, size[0], size[1] ? size[1] : 1, old_texture.format, old_texture.type);
tex = new mod.DataTexture(buffer, size[0], size[1] ? size[1] : 1, old_texture.format, old_texture.type);
}
tex.minFilter = old_texture.minFilter;
tex.magFilter = old_texture.magFilter;
Expand Down

0 comments on commit 83d1ea1

Please sign in to comment.