aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-12-17 21:25:47 +0100
committerMichal Krol <[email protected]>2009-12-17 21:25:47 +0100
commit3af2ddbe943f0fe0d6b0ba9e627cbb82d0cc79f2 (patch)
tree48e4c6765ce157b55e578d0860c7284ca7f954f6 /src/mesa
parentdfdf83d714c0d32d9182eb3001cf642aa6cb5c87 (diff)
s/desc->type/desc->channel[0].type/
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_format.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index 329ae03db20..94da0f61e09 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -99,20 +99,20 @@ st_get_format_info(enum pipe_format format, struct pipe_format_info *pinfo)
else {
const GLuint size = format_max_bits(format);
if (size == 8) {
- if (desc->type == UTIL_FORMAT_TYPE_UNSIGNED)
+ if (desc->channel[0].type == UTIL_FORMAT_TYPE_UNSIGNED)
pinfo->datatype = GL_UNSIGNED_BYTE;
else
pinfo->datatype = GL_BYTE;
}
else if (size == 16) {
- if (desc->type == UTIL_FORMAT_TYPE_UNSIGNED)
+ if (desc->channel[0].type == UTIL_FORMAT_TYPE_UNSIGNED)
pinfo->datatype = GL_UNSIGNED_SHORT;
else
pinfo->datatype = GL_SHORT;
}
else {
assert( size <= 32 );
- if (desc->type == UTIL_FORMAT_TYPE_UNSIGNED)
+ if (desc->channel[0].type == UTIL_FORMAT_TYPE_UNSIGNED)
pinfo->datatype = GL_UNSIGNED_INT;
else
pinfo->datatype = GL_INT;