diff options
author | Kenneth Graunke <[email protected]> | 2016-12-17 19:47:38 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-12-19 11:33:40 -0800 |
commit | 78a391ed8311fc5215347f8775bf0aa29568b78d (patch) | |
tree | f63719ece1ba92b271dfb77c029a717cefcef730 /docs/extensions.html | |
parent | 52098fada7e965479490045684b9897c623f5f76 (diff) |
mesa/get: Make GetFloat/GetDouble of TYPE_INT_N not normalize things.
GetFloat of integer valued things is supposed to perform a simple
int -> float conversion. INT_TO_FLOAT is not that. Instead, it
converts [-2147483648, 2147483647] to a normalized [-1.0, 1.0] float.
This is only used for COMPRESSED_TEXTURE_FORMATS, which nobody in
their right mind would try and access via glGetFloat(), but we may
as well fix it.
Found by inspection.
v2: Gotta catch 'em all (fix another case of this caught by Ilia)
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'docs/extensions.html')
0 files changed, 0 insertions, 0 deletions