Qt: Set clear alpha to zero for OpenGL display
Fixes transparent windows in Wayland.
This commit is contained in:
parent
456ddc037a
commit
a5ecff0893
|
@ -444,7 +444,7 @@ out vec4 o_col0;
|
|||
|
||||
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);
|
||||
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);
|
||||
|
||||
renderDisplay();
|
||||
|
|
Loading…
Reference in New Issue