Skip to content

Commit 6aa674a

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

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
@@ -401,7 +401,7 @@ function yyVBufferBuilder(_size) {
401401
// Check whether the webgl texture has been initialised yet and do so if not
402402
if (_texture && !_texture.WebGLTexture.webgl_textureid) {
403403
WebGL_BindTexture(_texture.TPE);
404-
if(_texture.WebGLTexture.webgl_textureid.Image == undefined) {
404+
if(_texture.WebGLTexture.webgl_textureid.Image == undefined|| _texture.WebGLTexture.webgl_textureid.Image == null) {
405405
yyError("vertex_submit: trying to use an invalid texture");
406406
return;
407407
}

0 commit comments

Comments
 (0)