diff options
| author | emersion <contact@emersion.fr> | 2018-04-01 16:57:29 -0400 | 
|---|---|---|
| committer | emersion <contact@emersion.fr> | 2018-04-01 16:57:29 -0400 | 
| commit | f63a5d881d7662ced11057e7d2c38435f40310d6 (patch) | |
| tree | 4124b135534d9307da43e5210d05ab581cf6864b /examples/rotation.c | |
| parent | 0c7968d0936603460c9e07ce0cd6c9188b77a39c (diff) | |
| download | wlroots-f63a5d881d7662ced11057e7d2c38435f40310d6.tar.xz | |
examples: get wlr_renderer from the backend
Diffstat (limited to 'examples/rotation.c')
| -rw-r--r-- | examples/rotation.c | 4 | 
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/rotation.c b/examples/rotation.c index 37873797..c7bbc99a 100644 --- a/examples/rotation.c +++ b/examples/rotation.c @@ -13,7 +13,6 @@  #include <wlr/backend.h>  #include <wlr/backend/session.h>  #include <wlr/render/wlr_renderer.h> -#include <wlr/render/gles2.h>  #include <wlr/types/wlr_keyboard.h>  #include <wlr/types/wlr_matrix.h>  #include <wlr/util/log.h> @@ -137,8 +136,7 @@ int main(int argc, char *argv[]) {  	compositor.keyboard_key_cb = handle_keyboard_key;  	compositor_init(&compositor); -	struct wlr_egl *egl = wlr_backend_get_egl(compositor.backend); -	state.renderer = wlr_gles2_renderer_create(egl); +	state.renderer = wlr_backend_get_renderer(compositor.backend);  	if (!state.renderer) {  		wlr_log(L_ERROR, "Could not start compositor, OOM");  		exit(EXIT_FAILURE);  | 
