diff options
author | Brian Paul <[email protected]> | 2012-01-13 08:31:26 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-01-13 09:50:33 -0700 |
commit | 540a8b2cfdedbf5a635f33c720aa795fae74e08b (patch) | |
tree | 37d07cd81ebd858da0a75d2dabcf56b19780bad2 /src/glsl | |
parent | 0c14bbbc8634f516d75a06e2a52d11d674e41170 (diff) |
osmesa: fix renderbuffer format selection
The gl_renderbuffer::Format field wasn't always set properly. This
didn't matter much in the past but with the recent swrast/renderbuffer
mapping changes, core Mesa will be directly touching OSMesa colorbuffers
so using the right MESA_FORMAT_x value is important.
Unfortunately, there aren't MESA_FORMATs for all the possible OSmesa
format/type combinations, such as GL_FLOAT / OSMESA_ARGB. If anyone
runs into these we can add new Mesa formats.
v2: add warnings for unsupported formats, fix ARGB_REV mix-up.
NOTE: This is a candidate for the 8.0 branch.
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/glsl')
0 files changed, 0 insertions, 0 deletions