Reenable region composition pipeline for layers

Bug #3341848

It works this time!

Change-Id: I0d371d8b2c75c67d4ce5009ddb990fe5e55a0a27
This commit is contained in:
Romain Guy
2011-01-12 15:08:47 -08:00
parent 1fc883b271
commit c038ea358a
2 changed files with 2 additions and 2 deletions

View File

@@ -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++) {

View File

@@ -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.