update rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/shadow2_demo.js.

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

View File

@ -311,7 +311,7 @@ function initFramebuffer(gl) {
return null;
};
framebuffer = gl.createFramebuffer();
if (!framebuffer){
if (!framebuffer) {
return error();
}
texture = gl.createTexture();