borismus / webvr-boilerplate

A starting point for web-based VR experiences that work on all VR headsets.
Apache License 2.0
1.8k stars 451 forks source link

WebGL: INVALID_OPERATION when exiting VR mode in scene with no texture #160

Closed Sam-Gr closed 8 years ago

Sam-Gr commented 8 years ago

If no texture is used in the scene, the following message appears in the console when exiting VR mode : WebGL: INVALID_OPERATION: drawArrays: no buffer is bound to enabled attribute

You can easily reproduce this issue in the webvr-boilerplate test by commenting map: texture, in the index.html at line 132. Then, enter VR and exit VR with the "back" icon.

borismus commented 8 years ago

This isn't a boilerplate issue, but a THREE.js one.

aramavetisyan commented 7 years ago

@Sam-Gr do you have any clue what causes this ? I have this problem now as well.

grigorkh commented 7 years ago

@Sam-Gr same here.

Sam-Gr commented 7 years ago

Actually, I can't reproduce the issue using the method that I described above. I guess the problem is fixed.