projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb03d7
)
mesa: use _mesa_get_current_tex_object()
author
Brian Paul
<brianp@vmware.com>
Mon, 16 Nov 2009 15:21:28 +0000
(08:21 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 16 Nov 2009 15:21:28 +0000
(08:21 -0700)
src/mesa/main/fbobject.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/fbobject.c
b/src/mesa/main/fbobject.c
index 2d0bfb3ad7341a6723514c0b2ae5dd0ad39f5e87..a2264b0dbfeb9a434929ef0d06f5df2b5e418ba0 100644
(file)
--- a/
src/mesa/main/fbobject.c
+++ b/
src/mesa/main/fbobject.c
@@
-1942,7
+1942,6
@@
_mesa_GetFramebufferAttachmentParameterivEXT(GLenum target, GLenum attachment,
void GLAPIENTRY
_mesa_GenerateMipmapEXT(GLenum target)
{
- struct gl_texture_unit *texUnit;
struct gl_texture_object *texObj;
GET_CURRENT_CONTEXT(ctx);
@@
-1961,8
+1960,7
@@
_mesa_GenerateMipmapEXT(GLenum target)
return;
}
- texUnit = _mesa_get_current_tex_unit(ctx);
- texObj = _mesa_select_tex_object(ctx, texUnit, target);
+ texObj = _mesa_get_current_tex_object(ctx, target);
_mesa_lock_texture(ctx, texObj);
if (target == GL_TEXTURE_CUBE_MAP) {