mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Upgrade gfx.js to 1.3.1 (#2985)
This commit is contained in:
@@ -9431,7 +9431,7 @@ function _commitTextures(gl, cur, next) {
|
||||
for (var i = 0; i < next.maxTextureSlot + 1; ++i) {
|
||||
if (cur.textureUnits[i] !== next.textureUnits[i]) {
|
||||
var texture = next.textureUnits[i];
|
||||
if (texture !== undefined && texture._glID !== -1) {
|
||||
if (texture && texture._glID !== -1) {
|
||||
gl.activeTexture(gl.TEXTURE0 + i);
|
||||
gl.bindTexture(texture._target, texture._glID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user