summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/condrender.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-10-18 11:52:39 -0700
committerEric Anholt <[email protected]>2011-10-20 08:45:07 -0700
commitf80e1e7d1de80fd919f376368d1cfc9416dabdc3 (patch)
treee3c6e379fb93b6eb1920570c86c03bc7e78965db /src/mesa/main/condrender.c
parent46d5fb576a37bdd50cd4a2795b27852b4c8a8250 (diff)
mesa: Round the argument to PixelStoref instead of truncating.
From the GL 2.1 specification, page 114 (page 128 of the PDF): "The version of PixelStore that takes a floating-point value may be used to set any type of parameter; if the parameter is boolean, then it is set to FALSE if the passed value is 0.0 and TRUE otherwise, while if the parameter is an integer, then the passed value is rounded to the nearest integer." Fixes piglit roundmode-pixelstore. Note: This is a candidate for the 7.11 branch. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/condrender.c')
0 files changed, 0 insertions, 0 deletions