OSVR / OSVR-Unity

Package for authoring OSVR experiences with Unity.
Apache License 2.0
99 stars 38 forks source link

Removing call to GL.Clear fixes "blue rectangle" bug in editor #123

Closed DuFF14 closed 8 years ago

DuFF14 commented 8 years ago

Which is weird because I think it was added in specifically to try to fix such issues. Tested in every scene, since this bug wasn't appearing every time in every scene. Also tested to make sure everything still looks good in a build. Going to speculate on this one a little more, and take a look at commit history to see when this was added in, before a merge.

DuFF14 commented 8 years ago

Looks like the GL.Clear call was added with commit ec328f3aacf2fe26ef506c3ecc64b251022b6317 to attempt to fix the "whitewash" bug that was happening with point lights in the scene. That bug seems to be fixed now, whether GL.Clear is called or not, so if removing the GL.Clear fixes the "blue rectangle" bug, it should probably be left out.