projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a719395
)
mesa: check BaseLevel, MaxLevel in _mesa_GenerateMipmapEXT()
author
Brian Paul
<brianp@vmware.com>
Mon, 16 Nov 2009 15:25:17 +0000
(08:25 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 16 Nov 2009 15:25:17 +0000
(08:25 -0700)
src/mesa/main/fbobject.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/fbobject.c
b/src/mesa/main/fbobject.c
index
a2264b0
..
7b3599f
100644
(file)
--- a/
src/mesa/main/fbobject.c
+++ b/
src/mesa/main/fbobject.c
@@
-1962,6
+1962,11
@@
_mesa_GenerateMipmapEXT(GLenum target)
texObj = _mesa_get_current_tex_object(ctx, target);
+ if (texObj->BaseLevel >= texObj->MaxLevel) {
+ /* nothing to do */
+ return;
+ }
+
_mesa_lock_texture(ctx, texObj);
if (target == GL_TEXTURE_CUBE_MAP) {
GLuint face;