mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 13:50:09 +01:00
mesa: flush vertices before changing GL_RASTERIZER_DISCARD state, not after
Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
aafbaa9e6a
commit
62aa51b78a
1 changed files with 1 additions and 1 deletions
|
|
@ -895,8 +895,8 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
|
|||
case GL_RASTERIZER_DISCARD:
|
||||
CHECK_EXTENSION(EXT_transform_feedback, cap);
|
||||
if (ctx->TransformFeedback.RasterDiscard != state) {
|
||||
ctx->TransformFeedback.RasterDiscard = state;
|
||||
FLUSH_VERTICES(ctx, _NEW_TRANSFORM);
|
||||
ctx->TransformFeedback.RasterDiscard = state;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue