*/
#include <errno.h>
-#include <GL/gl.h>
-#include <GL/glext.h>
#include <stdlib.h>
#include <string.h>
struct kmscon_terminal *term = data;
struct term_out *iter;
struct kmscon_output *output;
+ struct kmscon_context *ctx;
int ret;
+ ctx = kmscon_compositor_get_context(term->comp);
kmscon_eloop_rm_idle(idle);
kmscon_console_draw(term->console);
if (ret)
continue;
- glClearColor(0.0, 0.0, 0.0, 1.0);
- glClear(GL_COLOR_BUFFER_BIT);
-
+ kmscon_context_clear(ctx);
kmscon_console_map(term->console);
kmscon_output_swap(output);
}