aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texcompress_rgtc.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-11-05 12:59:12 -0600
committerBrian Paul <[email protected]>2011-11-07 14:25:48 -0700
commitf4fb0be605790c55abd7d66564486e5860721c21 (patch)
tree92f00a3aea034166b0ff167a9d41ddc60187b8e8 /src/mesa/main/texcompress_rgtc.c
parent0ef8c0ddc71b1459f28c7b3c4b1c2b7c3cab8228 (diff)
mesa: fix the selection of soft renderbuffer color formats
This fixes a regression from the recent glReadPixels changes found with the piglit hiz tests. Use either MESA_FORMAT_RGBA8888 or MESA_FORMAT_RGBA8888_REV for color buffers depending on endian-ness. Before, the gl_renderbuffer::Format field was MESA_FORMAT_RGBA8888 but the data was really stored as MESA_FORMAT_RGBA8888_REV when using a little endian machine. Getting this right matters now that we can access renderbuffer data without going through the span functions (namely glReadPixels() + MapRenderbuffer()).
Diffstat (limited to 'src/mesa/main/texcompress_rgtc.c')
0 files changed, 0 insertions, 0 deletions