From: Mikko Rasa Date: Mon, 14 Dec 2015 00:55:46 +0000 (+0200) Subject: Get rid of the ugly debugging colors X-Git-Url: http://git.tdb.fi/?p=geometrycompositor.git;a=commitdiff_plain;h=e4d258345d33560b0e8fd176526d81f4d9b11cb7 Get rid of the ugly debugging colors --- 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);