Commit ebf549db authored by Dor Askayo's avatar Dor Askayo Committed by Michel Dänzer
Browse files

glamor: make sure the correct FBO is cleared

This also removes an unnecesary call to glDrawBuffer.
Signed-off-by: Dor Askayo's avatarDor Askayo <>
Fixes: 0e9a0c20 - "xwayland: clear pixmaps after creation in rootless
Closes: xorg/xserver#933

Reviewed-by: Michel Dänzer's avatarMichel Dänzer <>
parent cb1b1e18
Pipeline #81945 passed with stages
in 7 minutes and 22 seconds
......@@ -253,7 +253,8 @@ glamor_pixmap_clear_fbo(glamor_screen_private *glamor_priv, glamor_pixmap_fbo *f
glClearTexImage(fbo->tex, 0, pixmap_format->format, pixmap_format->type, NULL);
else {
glDrawBuffer(GL_COLOR_ATTACHMENT0); /* assumes fbo->fb was attached as GL_COLOR_ATTACHMENT0 */
glamor_set_destination_pixmap_fbo(glamor_priv, fbo, 0, 0, fbo->width, fbo->height);
glClearColor(0.0, 0.0, 0.0, 0.0);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment