+196
−52
+65
−33
Loading
GL_ARB_clear_texture implements some useful GL entry-points for clears that can clear arbitrary sub-rects of the screen without having to latch or disturb GL state. This refactors the glClear implementation to be in terms of the provided glClearTexSubImage extension which is far more flexible. This further allows us to reuse clearing primitives in RenderCompositorSWGL without having to use more expensive DrawTarget versions. Differential Revision: https://phabricator.services.mozilla.com/D103252