Skip to content

Commit f92f96b

Browse files
committed
rdpq_mode: fix RDPQ_BLENDER_ADDITIVE docs wrt RDP overflow
1 parent 2b59a3d commit f92f96b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: include/rdpq_mode.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ inline void rdpq_mode_combiner(rdpq_combiner_t comb) {
526526
* You can pass this macro to #rdpq_mode_blender.
527527
*
528528
* NOTE: additive blending is broken on RDP because it can overflow. Basically,
529-
* if the result of the sum is larger than 1.5 (in scale 0..1), instead
530-
* of being clamped to 1, it overflows back to 0, which makes the
529+
* as soon as the result of the sum is slightly larger than 1.0 (in scale 0..1),
530+
* instead of being clamped to 1, it overflows back to 0, which makes the
531531
* mode almost useless. It is defined it for completeness.
532532
*/
533533
#define RDPQ_BLENDER_ADDITIVE RDPQ_BLENDER((IN_RGB, IN_ALPHA, MEMORY_RGB, ONE))

0 commit comments

Comments
 (0)