Set _NEW_BUFFERS in glRead/DrawBuffer().
Previously, we set _NEW_PIXEL and _NEW_COLOR in these functions, respectively. That correponds to the GL attribute groups, but doesn't make much sense otherwise. This could improve validation efficiency in a few places too. It looks like all the drivers are already checking for _NEW_BUFFERS in the right places (since that's the bit for FBO state) so we can trim out _NEW_PIXEL and _NEW_COLOR at any time.
This commit is contained in:
@@ -527,7 +527,7 @@ _mesa_drawbuffers(GLcontext *ctx, GLuint n, const GLenum *buffers,
|
||||
set_color_output(ctx, output, GL_NONE, 0x0);
|
||||
}
|
||||
|
||||
ctx->NewState |= _NEW_COLOR;
|
||||
ctx->NewState |= _NEW_BUFFERS;
|
||||
}
|
||||
|
||||
|
||||
@@ -588,7 +588,7 @@ _mesa_ReadBuffer(GLenum buffer)
|
||||
if (!_mesa_readbuffer_update_fields(ctx, buffer))
|
||||
return;
|
||||
|
||||
ctx->NewState |= _NEW_PIXEL;
|
||||
ctx->NewState |= _NEW_BUFFERS;
|
||||
|
||||
/*
|
||||
* Call device driver function.
|
||||
|
Reference in New Issue
Block a user