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

Commit d2fe1e8a authored by John Reck's avatar John Reck Committed by android-build-merger
Browse files

Merge "Clear native shader when Paint shader changes" into oc-dev am: d3e78478 am: 4ee3fb4c

am: 1079279d

Change-Id: I0806c1aea547075a92dfde8b0602ca4deb5cde53
parents 531b2743 1079279d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1115,6 +1115,8 @@ public class Paint {
        // old shader's pointer may be reused by another shader allocation later
        if (mShader != shader) {
            mNativeShader = -1;
            // Release any native references to the old shader content
            nSetShader(mNativePaint, 0);
        }
        // Defer setting the shader natively until getNativeInstance() is called
        mShader = shader;