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

Skip to content
Commit fe556cd7 authored by Brandon Chen's avatar Brandon Chen
Browse files

Use highp to avoid float overflow in expression



float D = C * (A / B) could be relaxed to
float D =  (C * A) * (1 / B).

This is qualified in GLES Spec at chapter Evaluation of Expressions.

Note that "C * A" could exceed the maximal value of FP16.
Use highp float to keep the correct value.

Bug: 237997490
Test: Launch gallery and check thumbnail of video

Signed-off-by: default avatarBrandon Chen <brandon.chen@imgtec.com>
Change-Id: Icfa355ecb2501267b00a9615b36fb70606864b94
parent 47f12cdd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment