Skip to content

Commit

Permalink
fix blending mode in border renderer to avoid blinking when switch
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Nov 26, 2022
1 parent afe688e commit 675ff5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/OpenGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ void CHyprOpenGLImpl::renderBorder(wlr_box* box, const CGradientValueData& grad,
wlr_matrix_multiply(glMatrix, m_RenderData.projection, matrix);

glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glBlendFunc(GL_SRC_ALPHA, GL_ONE);

glUseProgram(m_RenderData.pCurrentMonData->m_shBORDER1.program);

Expand Down

0 comments on commit 675ff5b

Please sign in to comment.