aboutsummaryrefslogtreecommitdiff
path: root/src/imv.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-07-13 00:44:36 +0100
committerHarry Jeffery <harry@exec64.co.uk>2019-07-13 00:44:36 +0100
commit81ae6d8bc64651e717c2a9c2cfc1a3099d0945b7 (patch)
tree169309bb7f37a16bfcff5171926860e9e85181ce /src/imv.c
parent242dbe7cbe9524a66cbb9a1ef5db881a45bd7d8b (diff)
downloadimv-81ae6d8bc64651e717c2a9c2cfc1a3099d0945b7.tar.gz
Remove OpenGL awareness from core logic
Diffstat (limited to 'src/imv.c')
-rw-r--r--src/imv.c6
1 files changed, 1 insertions, 5 deletions
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 <unistd.h>
#include <wordexp.h>
-#include <GL/gl.h>
-
#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);
}