diff options
author | Kenneth Graunke <[email protected]> | 2012-06-10 18:41:58 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-08-17 09:14:36 -0700 |
commit | 9e4fde85e46f406b37ad372487fbff4ed51c65e4 (patch) | |
tree | 9b1e55e7646b142c137e4f8810f3cc610a773dd1 /src/mesa/main/readpix.c | |
parent | 63396ce4c0fe067f69d1b53d0408627a421c4678 (diff) |
mesa: Add explicit target checking to GetTexLevelParameter[if]v().
Previously, it relied on _mesa_max_texture_levels() for texture target
error checking. This was somewhat dodgy, as _mesa_max_texture_levels()
is called in seven diferent places, not all of which necessarily accept
the same list of targets.
I copied the list of legal targets from _mesa_max_texture_levels(), so
this patch should not introduce any change in behavior. Future patches
will cause the two to diverge.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/readpix.c')
0 files changed, 0 insertions, 0 deletions