From 81ae6d8bc64651e717c2a9c2cfc1a3099d0945b7 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Sat, 13 Jul 2019 00:44:36 +0100 Subject: Remove OpenGL awareness from core logic --- src/imv.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/imv.c') diff --git a/src/imv.c b/src/imv.c index aa99a72..6f8972b 100644 --- a/src/imv.c +++ b/src/imv.c @@ -9,8 +9,6 @@ #include #include -#include - #include "backend.h" #include "binds.h" #include "canvas.h" @@ -443,7 +441,6 @@ static void event_handler(void *data, const struct imv_event *e) const int bh = e->data.resize.buffer_height; imv_viewport_update(imv->view, ww, wh, bw, bh, imv->current_image); imv_canvas_resize(imv->canvas, bw, bh); - glViewport(0, 0, bw, bh); break; } case IMV_EVENT_KEYBOARD: @@ -985,8 +982,7 @@ int imv_run(struct imv *imv) } if (imv->need_redraw) { - glClearColor(0.0, 0.0, 0.0, 1.0); - glClear(GL_COLOR_BUFFER_BIT); + imv_window_clear(imv->window, 0, 0, 0); render_window(imv); imv_window_present(imv->window); } -- cgit v1.2.3