Skip to content

Commit 3f91615

Browse files
committed
glgsg: reset color write mask before calling draw callback
1 parent bafb0ac commit 3f91615

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

panda/src/glstuff/glGraphicsStateGuardian_src.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3754,6 +3754,10 @@ clear_before_callback() {
37543754
_glClientActiveTexture(GL_TEXTURE0);
37553755
#endif
37563756

3757+
// It's also quite reasonable to presume there aren't any funny color write
3758+
// mask settings active.
3759+
clear_color_write_mask();
3760+
37573761
// Clear the bound sampler object, so that we do not inadvertently override
37583762
// the callback's desired sampler settings.
37593763
#ifndef OPENGLES_1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy