Browse Source

pgraph: fix ScissorAttrib compare (fix flickering DirectScrolledFrame)

Fixes #681
rdb 6 years ago
parent
commit
4bb31029f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/pgraph/scissorAttrib.cxx

+ 1 - 1
panda/src/pgraph/scissorAttrib.cxx

@@ -101,7 +101,7 @@ int ScissorAttrib::
 compare_to_impl(const RenderAttrib *other) const {
   const ScissorAttrib *ta = (const ScissorAttrib *)other;
 
-  if (!_off && !ta->_off) {
+  if (_off && ta->_off) {
     return 0;
   }