Browse Source

Fix stencil clear: reset stencil mask before glClearStencil

rdb 11 năm trước cách đây
mục cha
commit
17aafeba15
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 1 - 0
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -2412,6 +2412,7 @@ clear(DrawableRegion *clearable) {
   }
 
   if (clearable->get_clear_stencil_active()) {
+    glStencilMask(~0);
     glClearStencil(clearable->get_clear_stencil());
     mask |= GL_STENCIL_BUFFER_BIT;
   }