[.WebGL-0x2c03a71500]GL ERROR :GL_INVALID_VALUE : glCopySubTextureCHROMIUM: destination texture bad dimensions

Hi guys,

I’m trying to run code locally on my machine based off of an example I was given by someone in this community on a previous thread:

However when I run this code locally I’ll sometimes warnings that prevent the cube from rendering properly:
Screen Shot 2022-04-05 at 9 10 23 AM

When it should look like this:
Screen Shot 2022-04-05 at 9 10 42 AM

Any pointers as to why this might be happening? A hunch that i have is that it might have something to do with the textureRef.current.needsUpdate on line 94.