From 4bb31029f02f5c406c1e90aee509af53deaf5757 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 10 Jul 2019 11:14:54 +0200 Subject: [PATCH] pgraph: fix ScissorAttrib compare (fix flickering DirectScrolledFrame) Fixes #681 --- panda/src/pgraph/scissorAttrib.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/pgraph/scissorAttrib.cxx b/panda/src/pgraph/scissorAttrib.cxx index 4e137eec5b..f84bab3fc0 100644 --- a/panda/src/pgraph/scissorAttrib.cxx +++ b/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; }