From e4d258345d33560b0e8fd176526d81f4d9b11cb7 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 14 Dec 2015 02:55:46 +0200 Subject: [PATCH] Get rid of the ugly debugging colors --- source/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/main.c b/source/main.c index a1bfe6a..2d5dd91 100644 --- a/source/main.c +++ b/source/main.c @@ -1242,6 +1242,7 @@ void refresh_screen(Compositor *compositor, CompositedScreen *screen) use_gl(compositor, screen); + glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glBindFramebuffer(GL_DRAW_FRAMEBUFFER, screen->framebuffer); use_mask = -1; @@ -1258,10 +1259,7 @@ void refresh_screen(Compositor *compositor, CompositedScreen *screen) compositor->glXReleaseTexImageEXT(compositor->display, screen->root_glx_pixmap, GLX_FRONT_LEFT_EXT); } else - { - glClearColor(0.5f, 0.5f, 0.5f, 0.0f); glClear(GL_COLOR_BUFFER_BIT); - } for(i=0; inwindows; ++i) { @@ -1299,7 +1297,6 @@ void refresh_screen(Compositor *compositor, CompositedScreen *screen) } glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); - glClearColor(0.5f, 0.0f, 0.5f, 0.0f); glClear(GL_COLOR_BUFFER_BIT); glBindTexture(GL_TEXTURE_2D, screen->fb_texture); glEnable(GL_PRIMITIVE_RESTART); -- 2.43.0