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

Commit c038ea35 authored by Romain Guy's avatar Romain Guy
Browse files

Reenable region composition pipeline for layers

Bug #3341848

It works this time!

Change-Id: I0d371d8b2c75c67d4ce5009ddb990fe5e55a0a27
parent 1fc883b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -627,7 +627,7 @@ void OpenGLRenderer::composeLayerRegion(Layer* layer, const Rect& rect) {
        setupDrawDirtyRegionsDisabled();
        setupDrawPureColorUniforms();
        setupDrawTexture(layer->texture);
        setupDrawModelViewIdentity();
        setupDrawModelViewTranslate(rect.left, rect.top, rect.right, rect.bottom);
        setupDrawMesh(&mesh[0].position[0], &mesh[0].texture[0]);

        for (size_t i = 0; i < count; i++) {
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@
 */

// If turned on, layers drawn inside FBOs are optimized with regions
#define RENDER_LAYERS_AS_REGIONS 0
#define RENDER_LAYERS_AS_REGIONS 1

/**
 * Debug level for app developers.