summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/bbox.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-12-17 19:55:53 -0800
committerKenneth Graunke <[email protected]>2016-12-19 11:33:40 -0800
commit9f93afb9a5586cb90e127ba7d63de3b416d08821 (patch)
treec094498968eef87b494e8acaf39c62d26353bc86 /src/mesa/main/bbox.c
parent78a391ed8311fc5215347f8775bf0aa29568b78d (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 'src/mesa/main/bbox.c')
0 files changed, 0 insertions, 0 deletions