aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/clear.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-01-22 19:11:22 -0500
committerMarge Bot <[email protected]>2020-02-11 00:34:57 +0000
commit27dada7ce90315d47184c51879a3f67e99f2bab2 (patch)
tree0747f820f87df49ffec7f94dc0cbebdd52e51901 /src/mesa/main/clear.c
parentc7c8fe1cc1a972e59885cc14778dbf5a520f48dd (diff)
mesa: remove FLUSH_CURRENT calls that have no effect
Reviewed-by: Mathias Fröhlich <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>
Diffstat (limited to 'src/mesa/main/clear.c')
-rw-r--r--src/mesa/main/clear.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c
index c12983f8dcd..fda4df59528 100644
--- a/src/mesa/main/clear.c
+++ b/src/mesa/main/clear.c
@@ -144,7 +144,6 @@ static ALWAYS_INLINE void
clear(struct gl_context *ctx, GLbitfield mask, bool no_error)
{
FLUSH_VERTICES(ctx, 0);
- FLUSH_CURRENT(ctx, 0);
if (!no_error) {
if (mask & ~(GL_COLOR_BUFFER_BIT |
@@ -344,7 +343,6 @@ clear_bufferiv(struct gl_context *ctx, GLenum buffer, GLint drawbuffer,
const GLint *value, bool no_error)
{
FLUSH_VERTICES(ctx, 0);
- FLUSH_CURRENT(ctx, 0);
if (ctx->NewState) {
_mesa_update_state( ctx );
@@ -464,7 +462,6 @@ clear_bufferuiv(struct gl_context *ctx, GLenum buffer, GLint drawbuffer,
const GLuint *value, bool no_error)
{
FLUSH_VERTICES(ctx, 0);
- FLUSH_CURRENT(ctx, 0);
if (ctx->NewState) {
_mesa_update_state( ctx );
@@ -553,7 +550,6 @@ clear_bufferfv(struct gl_context *ctx, GLenum buffer, GLint drawbuffer,
const GLfloat *value, bool no_error)
{
FLUSH_VERTICES(ctx, 0);
- FLUSH_CURRENT(ctx, 0);
if (ctx->NewState) {
_mesa_update_state( ctx );
@@ -671,7 +667,6 @@ clear_bufferfi(struct gl_context *ctx, GLenum buffer, GLint drawbuffer,
GLbitfield mask = 0;
FLUSH_VERTICES(ctx, 0);
- FLUSH_CURRENT(ctx, 0);
if (!no_error) {
if (buffer != GL_DEPTH_STENCIL) {