mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
mesa: don't set _NEW_BUFFERS in GenerateMipmap and BlitFramebuffer
both functions don't change the framebuffer in any way (if mesa_meta is not used) Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
d883d00878
commit
1e3b422685
1 changed files with 2 additions and 2 deletions
|
|
@ -2724,7 +2724,7 @@ _mesa_GenerateMipmap(GLenum target)
|
|||
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
FLUSH_VERTICES(ctx, _NEW_BUFFERS);
|
||||
FLUSH_VERTICES(ctx, 0);
|
||||
|
||||
switch (target) {
|
||||
case GL_TEXTURE_1D:
|
||||
|
|
@ -2908,7 +2908,7 @@ _mesa_BlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
|
|||
const struct gl_framebuffer *readFb, *drawFb;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
FLUSH_VERTICES(ctx, _NEW_BUFFERS);
|
||||
FLUSH_VERTICES(ctx, 0);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue