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

Commit 317b7e66 authored by Shilpa Sheoran's avatar Shilpa Sheoran Committed by Steve Kondik
Browse files

Update width and height only when scaling is crossing copybit limitations

Change-Id: I20a0ef626cb8e4fd85969bc211630d201e69d40f
parent 02e542fd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -475,8 +475,10 @@ void LayerBuffer::BufferSource::onDraw(const Region& clip) const
            else if ((src.crop.b-src.crop.t)*mag < h)
                yscale = mag;

            if (xscale != 1.0f || yscale != 1.0f) {
                w = floorf((src.crop.r-src.crop.l) * xscale);
                h = floorf((src.crop.b-src.crop.t) * yscale);
           }

            // create our EGLImageKHR the first time
            err = initTempBuffer(w, h);