mesa: remove GLchan-based formats; use hw 8-bit/channel formats instead

Removed: MESA_FORMAT_RGBA, RGB, ALPHA, LUMINANCE, LUMINANCE_ALPHA, INTENSITY.
This commit is contained in:
Brian Paul
2009-09-30 21:00:16 -06:00
parent 74ae14a2bd
commit 3fa7dbf368
10 changed files with 35 additions and 471 deletions

View File

@@ -1025,9 +1025,9 @@ choose_tex_format( GLcontext *ctx, GLint internalFormat,
{
switch (internalFormat) {
case GL_COMPRESSED_RGB_ARB:
return MESA_FORMAT_RGB;
return MESA_FORMAT_RGB888;
case GL_COMPRESSED_RGBA_ARB:
return MESA_FORMAT_RGBA;
return MESA_FORMAT_RGBA8888;
default:
return _mesa_choose_tex_format(ctx, internalFormat, format, type);
}