@@ -48,9 +48,8 @@ BackendScope::~BackendScope() {
|
||||
}
|
||||
|
||||
void BackendScope::activate() {
|
||||
if (scopeType == ScopeType::Explicit &&
|
||||
!(priorScope && this->backend == priorScope->backend) &&
|
||||
!(nextScope && this->backend == nextScope->backend)) {
|
||||
if (scopeType == ScopeType::Explicit && !(priorScope && this->backend == priorScope->backend) &&
|
||||
!(nextScope && this->backend == nextScope->backend)) {
|
||||
// Only activate when set to Explicit and
|
||||
// only once per RenderBackend
|
||||
backend.activate();
|
||||
@@ -59,8 +58,7 @@ void BackendScope::activate() {
|
||||
}
|
||||
|
||||
void BackendScope::deactivate() {
|
||||
if (activated &&
|
||||
!(nextScope && this->backend == nextScope->backend)) {
|
||||
if (activated && !(nextScope && this->backend == nextScope->backend)) {
|
||||
// Only deactivate when set to Explicit and
|
||||
// only once per RenderBackend
|
||||
backend.deactivate();
|
||||
|
||||
Reference in New Issue
Block a user