aboutsummaryrefslogtreecommitdiff
path: root/render/gles2
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-06-07 23:15:34 +0200
committerIsaac Freund <mail@isaacfreund.com>2022-06-08 19:27:36 +0000
commit96b594110ddbb4ab133ef4c9030a7c416175b20e (patch)
treec7fafbe43abbbb90246448661b7c9f09159233db /render/gles2
parentc2e046022f36001fd2b9fd369ac14acf73a20e23 (diff)
matrix: remove wlr_matrix_projection()
69477051ccff ("matrix: deprecate wlr_matrix_projection") marked it as deprecated. 1 year later, we can now remove it from our public API.
Diffstat (limited to 'render/gles2')
-rw-r--r--render/gles2/renderer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c
index c47081ae..5a2f31b5 100644
--- a/render/gles2/renderer.c
+++ b/render/gles2/renderer.c
@@ -17,6 +17,7 @@
#include "render/egl.h"
#include "render/gles2.h"
#include "render/pixel_format.h"
+#include "types/wlr_matrix.h"
static const GLfloat verts[] = {
1, 0, // top right
@@ -203,7 +204,7 @@ static void gles2_begin(struct wlr_renderer *wlr_renderer, uint32_t width,
renderer->viewport_height = height;
// refresh projection matrix
- wlr_matrix_projection(renderer->projection, width, height,
+ matrix_projection(renderer->projection, width, height,
WL_OUTPUT_TRANSFORM_FLIPPED_180);
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);