diff options
author | Kenneth Graunke <[email protected]> | 2016-12-17 19:55:53 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-12-19 11:33:40 -0800 |
commit | 9f93afb9a5586cb90e127ba7d63de3b416d08821 (patch) | |
tree | c094498968eef87b494e8acaf39c62d26353bc86 /docs/conform.html | |
parent | 78a391ed8311fc5215347f8775bf0aa29568b78d (diff) |
mesa/get: Add TYPE_UINT for casting through a GLuint.
The "State Tables" section of the OpenGL specification lists many values
as belonging to Z+ (non-negative integers), not Z (all integers).
For ordinary glGetInteger queries, this doesn't matter. However, when
accessing Z+ values via glGetFloat or glGetInteger64, we need to treat
the source value as an unsigned value. Otherwise, we'll produce a
negative number when bit 31 is set.
This commit merely adds the plumbing. It doesn't convert any values.
v2: Gotta catch 'em all (add missing cases caught by Ilia)
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'docs/conform.html')
0 files changed, 0 insertions, 0 deletions