Qt: Set clear alpha to zero for OpenGL display

Fixes transparent windows in Wayland.
This commit is contained in:
Connor McLaughlin 2020-05-03 02:59:00 +10:00
parent 456ddc037a
commit a5ecff0893
1 changed files with 2 additions and 2 deletions

View File

@ -444,7 +444,7 @@ out vec4 o_col0;
void main() void main()
{ {
o_col0 = texture(samp0, v_tex0); o_col0 = vec4(texture(samp0, v_tex0).rgb, 1.0);
} }
)"; )";
@ -500,7 +500,7 @@ void OpenGLHostDisplay::Render()
{ {
glDisable(GL_SCISSOR_TEST); glDisable(GL_SCISSOR_TEST);
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT);
renderDisplay(); renderDisplay();