diff --git a/src/backend/gl/gl_common.c b/src/backend/gl/gl_common.c index 78101624..079b7884 100644 --- a/src/backend/gl/gl_common.c +++ b/src/backend/gl/gl_common.c @@ -306,8 +306,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 3f63cd7e..982fe2b4 100644 --- a/src/opengl.c +++ b/src/opengl.c @@ -1224,8 +1224,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);