Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3acdfbfc authored by Hendrik Wagenaar's avatar Hendrik Wagenaar Committed by Alex Vakulenko
Browse files

Fix an incorrect LOG_ALWAYS_FATAL_IF introduced in sweep

* flip the condition to get same functionality as before the
  sweep

Bug: None
Test: None
Change-Id: Iae781f495f29357431d84e79207849f9c3659d94
parent 50e67545
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -308,7 +308,7 @@ void DistortionRenderer::EdsShader::load(const char* vertex,
  if (blend_with_previous_layer) {
    // Check for unsupported shader combinations:
    LOG_ALWAYS_FATAL_IF(num_layers != 1);
    LOG_ALWAYS_FATAL_IF(!use_alpha_vignette);
    LOG_ALWAYS_FATAL_IF(use_alpha_vignette);
    if (kUseFramebufferReadback)
      frag_builder += "#define BLEND_WITH_PREVIOUS_LAYER\n";
  }