forked from CyanogenMod/android_system_core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix part of [2017702] OpenGL bugs with alpha values of 1.0 in the sou…
…rce during blending into 8888 buffers when ONE / ONE_MINUS_SRC_ALPHA blending mode was used, the code wasn't saturating the color component. the reason was that this mode is used for premltiplied alpha blending, however, if used with a non premultiplied source, the color component would wrap. unfortunately, this costs 6 extra cycles per pixels, however... "correctness" prevails. this should not impact the UI since it's using h/w acceleration most of the time it also doesn't impact games which should be using h/w GL. This change will slow the emulator down a bit.
- Loading branch information
1 parent
7f5b1a2
commit 9d88176
Showing
1 changed file
with
48 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters