Jump to content

WebGl error on isVisible change in webview


Hersir
 Share

Recommended Posts

Hi,

have weird issue on android webview (Note 8, Android 7.1.1)

Have meshes, that are clones of 1 mesh, with different materials (PBRMetallicRoughnessMaterial).

These meshes have 2 states enabled and disabled, and each state have different baseTexture.

Also these meshes are set visible and hidden using isVisible.

When state changes to enabled, texture is changed on material and isVisible is set to true,

all works well except in android webview, where such error is thrown and mesh is transparent.

If mesh visibility is not changed (all are visible all the time), there are no error.

[.Offscreen-For-WebGL-0x72eb80ce00]GL ERROR :GL_INVALID_OPERATION : GetShaderiv: <- error from previous GL command
[.Offscreen-For-WebGL-0x72eb80ce00]GL ERROR :GL_INVALID_OPERATION : glTexImage2D: <- error from previous GL command
[.Offscreen-For-WebGL-0x72eb80ce00]GL ERROR :GL_INVALID_OPERATION : glFramebufferTexture2DMultisample: <- error from previous GL command
[.Offscreen-For-WebGL-0x72eb80ce00]GL ERROR :GL_INVALID_OPERATION : glTexImage2D: <- error from previous GL command
[.Offscreen-For-WebGL-0x72eb80ce00]GL ERROR :GL_INVALID_OPERATION : glFramebufferTexture2DMultisample: <- error from previous GL command
[.Offscreen-For-WebGL-0x72eb80ce00]GL ERROR :GL_INVALID_OPERATION : glTexImage2D: <- error from previous GL command
[.Offscreen-For-WebGL-0x72eb80ce00]GL ERROR :GL_INVALID_OPERATION : glFramebufferTexture2DMultisample: <- error from previous GL command

thank you for any hint :)

Link to comment
Share on other sites

There must be a previous error as these ones are just consequences of the first one :(

Just in case, can you try to set engine.disableTextureBindingOptimization = true (right after creating the engine)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...