diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-05-22 14:26:53 -0400 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-05-28 14:53:34 -0400 |
commit | 6f67bfe5ab111881f2c066502b845d35c0c24a30 (patch) | |
tree | cb0c3e27dc6cdc46f538e635d8f169799470dfbb /render/gles2/renderer.c | |
parent | 3de330ec856edbae2caa13d9358dc5dfddf35370 (diff) |
renderer/gles2: Interpret matrix as column major in shader
Avoids us needing to transpose.
Diffstat (limited to 'render/gles2/renderer.c')
-rw-r--r-- | render/gles2/renderer.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 518068a3..6648fb65 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -309,10 +309,6 @@ static bool gles2_render_subtexture_with_matrix( float gl_matrix[9]; wlr_matrix_multiply(gl_matrix, renderer->projection, matrix); - // OpenGL ES 2 requires the glUniformMatrix3fv transpose parameter to be set - // to GL_FALSE - wlr_matrix_transpose(gl_matrix, gl_matrix); - push_gles2_debug(renderer); if (!texture->has_alpha && alpha == 1.0) { @@ -368,10 +364,6 @@ static void gles2_render_quad_with_matrix(struct wlr_renderer *wlr_renderer, float gl_matrix[9]; wlr_matrix_multiply(gl_matrix, renderer->projection, matrix); - // OpenGL ES 2 requires the glUniformMatrix3fv transpose parameter to be set - // to GL_FALSE - wlr_matrix_transpose(gl_matrix, gl_matrix); - push_gles2_debug(renderer); if (color[3] == 1.0) { |