diff options
author | Brian Paul <[email protected]> | 2009-09-30 21:00:16 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-09-30 21:00:16 -0600 |
commit | 3fa7dbf368bb060220e9f78e666b00d6827166a6 (patch) | |
tree | 83cf26eb834b50f174c496fc4467db65bdba9e48 /src/mesa/main/mipmap.c | |
parent | 74ae14a2bde4f87a554c3d96e6f4a9a02591308d (diff) |
mesa: remove GLchan-based formats; use hw 8-bit/channel formats instead
Removed: MESA_FORMAT_RGBA, RGB, ALPHA, LUMINANCE, LUMINANCE_ALPHA, INTENSITY.
Diffstat (limited to 'src/mesa/main/mipmap.c')
-rw-r--r-- | src/mesa/main/mipmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c index 7e99a5d3de5..ccd153303d4 100644 --- a/src/mesa/main/mipmap.c +++ b/src/mesa/main/mipmap.c @@ -1521,11 +1521,11 @@ _mesa_generate_mipmap(GLcontext *ctx, GLenum target, texObj->Target == GL_TEXTURE_CUBE_MAP_ARB); if (srcImage->_BaseFormat == GL_RGB) { - convertFormat = MESA_FORMAT_RGB; + convertFormat = MESA_FORMAT_RGB888; components = 3; } else if (srcImage->_BaseFormat == GL_RGBA) { - convertFormat = MESA_FORMAT_RGBA; + convertFormat = MESA_FORMAT_RGBA8888; components = 4; } else { |