Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change some WEBGL_multiview errors to be generated at draw (#2420)
Make it possible to enable EXT_disjoint_timer_query(2) at the same time as WEBGL_multiview. This is important particularly for emscripten compatibility. Emscripten apps enable all available extensions at initialization. So if a timer query is active, multiview draws and clears now generate an INVALID_OPERATION error. Transform feedback related errors are also changed to happen at draw time rather than at state changes. This is a more elegant API, and even though making it perform as well is slightly more difficult, a sufficiently performant implementation should be possible. Also adds a framebuffer completeness condition that baseViewIndex must match between attachments. This is required for a performant implementation on most desktop platforms.
- Loading branch information
Showing
1 changed file
with
19 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters