Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node后台传入shader中传入多张纹理报错 #238

Open
hhair opened this issue Apr 2, 2021 · 0 comments
Open

node后台传入shader中传入多张纹理报错 #238

hhair opened this issue Apr 2, 2021 · 0 comments

Comments

@hhair
Copy link

hhair commented Apr 2, 2021

node后台使用layer.addPass设置片段着色器,会报以下错误
if(pixels._image) pixels = pixels._image; ^ TypeError: Cannot read property '_image' of null at WebGLRenderingContext.ctx.texImage2D (sprite\node_modules\n ode-canvas-webgl\lib\canvas.js:108:19) at Renderer.createTexture (sprite\node_modules\spritejs\d ist\spritejs.js:9777:12) at Renderer.createFBO (sprite\node_modules\spritejs\dist\ spritejs.js:9874:28) at Layer.getFBO (sprite\node_modules\spritejs\dist\sprite js.js:37884:28) at Layer.render (sprite\node_modules\spritejs\dist\sprite js.js:37930:43) at sprite\node_modules\spritejs\dist\spritejs.js:37860:24 at Timeout._onTimeout (sprite\node_modules\spritejs\dist\ spritejs.js:21198:7) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7)

@hhair hhair changed the title node后台使用layer.addPass报错 node后台传入shader中传入多张纹理报错 Apr 6, 2021
@akira-cn akira-cn added the bug label Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants