diff options
author | Brian <[email protected]> | 2007-08-18 16:25:16 +0100 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-18 16:25:16 +0100 |
commit | 53cf87be1b93c760228e6a9af8115d2a9ff99337 (patch) | |
tree | 8cf9c96b522d057f963d541680d84d6abc93c9ab /src/mesa/main/mipmap.c | |
parent | 95e84a09ce3f35f59465be28026e83c1bc40ae8a (diff) |
some fixes for compressed cube maps (bug 11986)
Diffstat (limited to 'src/mesa/main/mipmap.c')
-rw-r--r-- | src/mesa/main/mipmap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c index 9f3db22b75c..a9260c847b0 100644 --- a/src/mesa/main/mipmap.c +++ b/src/mesa/main/mipmap.c @@ -1,8 +1,8 @@ /* * Mesa 3-D graphics library - * Version: 6.5.2 + * Version: 7.1 * - * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -957,7 +957,8 @@ _mesa_generate_mipmap(GLcontext *ctx, GLenum target, GLint components, size; GLchan *dst; - assert(texObj->Target == GL_TEXTURE_2D); + assert(texObj->Target == GL_TEXTURE_2D || + texObj->Target == GL_TEXTURE_CUBE_MAP_ARB); if (srcImage->_BaseFormat == GL_RGB) { convertFormat = &_mesa_texformat_rgb; |