Skip to content

Commit 7ecd917

Browse files
committed
- added additional check for null image on texture in vertex_submit
1 parent 6aa674a commit 7ecd917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Builders/yyVBufferBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ function yyVBufferBuilder(_size) {
385385
// Check whether the webgl texture has been initialised yet and do so if not
386386
if (_texture && !_texture.WebGLTexture.webgl_textureid) {
387387
WebGL_BindTexture(_texture.TPE);
388-
if(_texture.WebGLTexture.webgl_textureid.Image == undefined) {
388+
if(_texture.WebGLTexture.webgl_textureid.Image == undefined || _texture.WebGLTexture.webgl_textureid.Image == null) {
389389
yyError("vertex_submit: trying to use an invalid texture");
390390
return;
391391
}

0 commit comments

Comments
 (0)