diff options
author | emersion <contact@emersion.fr> | 2018-01-18 14:36:42 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-01-18 14:36:42 +0100 |
commit | 5017d7f7625e4ca3369feb241a81ad8a570d0fd1 (patch) | |
tree | 6bd862b809d9828792be63c22a8b01179e0a3541 /render | |
parent | 6fa0a91ee2325f4259021f529297920603343d69 (diff) |
rootston: only draw damaged regions
Diffstat (limited to 'render')
-rw-r--r-- | render/gles2/renderer.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 89cc4ffb..2dd64176 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -108,11 +108,9 @@ static void init_globals() { static void wlr_gles2_begin(struct wlr_renderer *_renderer, struct wlr_output *output) { // TODO: let users customize the clear color? - GL_CALL(glClearColor(0.25f, 0.25f, 0.25f, 1)); - GL_CALL(glClear(GL_COLOR_BUFFER_BIT)); - int32_t width = output->width; - int32_t height = output->height; - GL_CALL(glViewport(0, 0, width, height)); + //GL_CALL(glClearColor(0.25f, 0.25f, 0.25f, 1)); + //GL_CALL(glClear(GL_COLOR_BUFFER_BIT)); + GL_CALL(glViewport(0, 0, output->width, output->height)); // enable transparency GL_CALL(glEnable(GL_BLEND)); |