diff options
author | Keith Whitwell <[email protected]> | 2006-11-01 14:21:57 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2006-11-01 14:21:57 +0000 |
commit | 5ac93f86210eb5c2a8dee74ec19b0ecd54376863 (patch) | |
tree | ea7acd0170a8b35a4a331b05c5910bc574c8f050 /src/mesa/main/fbobject.c | |
parent | 232a489b41097b462fc0ad2b88f0df75a1abd4c3 (diff) |
Merge texmem-0-3-branch.
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r-- | src/mesa/main/fbobject.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 2ca10146313..cf8de1e0cbe 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -979,7 +979,9 @@ _mesa_BindFramebufferEXT(GLenum target, GLuint framebuffer) } FLUSH_VERTICES(ctx, _NEW_BUFFERS); - + if (ctx->Driver.Flush) { + ctx->Driver.Flush(ctx); + } if (framebuffer) { /* Binding a user-created framebuffer object */ newFb = _mesa_lookup_framebuffer(ctx, framebuffer); @@ -1548,7 +1550,9 @@ _mesa_GenerateMipmapEXT(GLenum target) texObj = _mesa_select_tex_object(ctx, texUnit, target); /* XXX this might not handle cube maps correctly */ + _mesa_lock_texture(ctx, texObj); _mesa_generate_mipmap(ctx, target, texUnit, texObj); + _mesa_unlock_texture(ctx, texObj); } |