Skip to content

Commit 3e33552

Browse files
committed
- removed valid texture image check from draw_primitive_texture_begin for platform consistency
1 parent b334c80 commit 3e33552

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

scripts/Builders/yyPrimBuilder.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ function WebGL_draw_primitive_begin_texture_RELEASE(_kind, _tex) {
133133
// If they've managed to find a path through the code without this texture being bound...
134134
if (g_PrimTexture && !g_PrimTexture.webgl_textureid) {
135135
WebGL_BindTexture({texture: g_PrimTexture});
136-
if(!WebGL_IsTextureImageValid(g_PrimTexture.webgl_textureid)) {
137-
yyError("draw_primitive_begin_texture: trying to use an invalid texture");
138-
return;
139-
}
140136
}
141137

142138
g_PrimVBuffer = new yyVBuffer(DEFAULT_VB_SIZE, g_webGL.GetVertexFormat(g_webGL.VERTEX_FORMAT_2D), false);

0 commit comments

Comments
 (0)