diff --git a/src/backend/gl/gl_common.c b/src/backend/gl/gl_common.c index ef30984..3db7b02 100644 --- a/src/backend/gl/gl_common.c +++ b/src/backend/gl/gl_common.c @@ -327,8 +327,6 @@ bool gl_dim_reg(session_t *ps, int dx, int dy, int width, int height, float z, P_PAINTREG_END(); } - glEnd(); - glColor4f(0.0f, 0.0f, 0.0f, 0.0f); glDisable(GL_BLEND); diff --git a/src/opengl.c b/src/opengl.c index 1dca398..3e12639 100644 --- a/src/opengl.c +++ b/src/opengl.c @@ -1165,8 +1165,6 @@ glx_dim_dst(session_t *ps, int dx, int dy, int width, int height, float z, P_PAINTREG_END(); } - glEnd(); - glColor4f(0.0f, 0.0f, 0.0f, 0.0f); glDisable(GL_BLEND);