update rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/shadow_demo.js.

Signed-off-by: zhoubin <zhoubin113@huawei.com>
This commit is contained in:
zhoubin 2024-07-18 10:19:08 +00:00 committed by Gitee
parent ee63cdfb8b
commit 06f51d1b9b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -313,7 +313,7 @@ function initFramebuffer(gl) {
return error();
}
texture = gl.createTexture();
if (!texture){
if (!texture) {
return error();
}
gl.bindTexture(gl.TEXTURE_2D, texture);