diff options
author | Eric Anholt <[email protected]> | 2011-11-17 13:56:30 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-11-22 13:58:37 -0800 |
commit | 755f0a0a02c5cf3be7e69ad51b411711fcc0bc27 (patch) | |
tree | 747b719ada5a6c311845a42719c73a9c69325cbf /src/mesa/main/viewport.c | |
parent | 250a9c8e7eabd38e38f39898b117f26533609d07 (diff) |
mesa: Make formats.c "datatype" values match glGetTexLevelParameter return.
The formats.c code's "datatype" value is "what does this value mean",
i.e. unorm or snorm or float, and is the return value from the
GL_TEXTURE_RED_TYPE class of queries. The depth formats were marked
as GL_UNSIGNED_INT, which is what we use for integer, and not what we
should be returning from the glGetTexLevelParameter.
In texstore, we were inappropriately using it as an argument to
_mesa_unpack_depth_span() that was expecting a value like
GL_UNSIGNED_INT or GL_UNSIGNED_SHORT. Just hardcode
_mesa_unpack_depth_span()'s arguments for now, though it looks like
the consumers of that interface would be happier with using
MESA_FORMAT.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/viewport.c')
0 files changed, 0 insertions, 0 deletions