Skip to content

Commit c31a448

Browse files
author
The Android Automerger
committed
Revert "work around a problem where fp registers get corrupted (DO NOT MERGE)"
This reverts commit cc262b2.
1 parent cc262b2 commit c31a448

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

libs/hwui/LayerRenderer.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,16 @@ namespace uirenderer {
3131
// Rendering
3232
///////////////////////////////////////////////////////////////////////////////
3333

34-
Rect* gHackDontCorruptRegisters;
35-
3634
void LayerRenderer::prepareDirty(float left, float top, float right, float bottom, bool opaque) {
3735
LAYER_RENDERER_LOGD("Rendering into layer, fbo = %d", mLayer->getFbo());
3836

39-
Rect dirty(left, top, right, bottom);
40-
gHackDontCorruptRegisters = &dirty;
41-
4237
glBindFramebuffer(GL_FRAMEBUFFER, mLayer->getFbo());
4338

4439
const float width = mLayer->layer.getWidth();
4540
const float height = mLayer->layer.getHeight();
4641

4742
#if RENDER_LAYERS_AS_REGIONS
43+
Rect dirty(left, top, right, bottom);
4844
if (dirty.isEmpty() || (dirty.left <= 0 && dirty.top <= 0 &&
4945
dirty.right >= width && dirty.bottom >= height)) {
5046
mLayer->region.clear();

0 commit comments

Comments
 (0)