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

Commit 82bafb32 authored by Chia-I Wu's avatar Chia-I Wu
Browse files

SF: set highp on outTexCoords

On implementations that use half floats for outTexCoords, the precision
is not enough when the layer is > 1024 in either dimension.

Bug: 253540001
Test: screencap, CTS

Change-Id: Ic712454b04e58cb93334a90377cacf013734a95a
parent f758f7a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -601,7 +601,7 @@ String8 ProgramCache::generateFragmentShader(const Key& needs) {
    }

    if (needs.hasTextureCoords()) {
        fs << "varying vec2 outTexCoords;";
        fs << "varying highp vec2 outTexCoords;";
    }

    if (needs.hasRoundedCorners()) {