opengl: avoid intermediate transpose step
commit1ef0a4de4ccd6e57f7b0a427b3e50153ab1d27a1
authorRomain Vimont <rom1v@videolabs.io>
Wed, 15 Jan 2020 13:46:59 +0000 (15 14:46 +0100)
committerThomas Guillem <thomas@gllm.fr>
Mon, 27 Jan 2020 16:44:15 +0000 (27 17:44 +0100)
tree92810ee9a113191cd17344eac7780fb5f1b9228a
parenta4bfd0f064a07594943e5444fe5eda3339ccab3c
opengl: avoid intermediate transpose step

Directly initialize the conversion matrix in place in column-major
order.

Note: We could not just pass GL_TRUE to the transpose parameter of
glUniformMatrix4fv, because it is not supported on OpenGL ES 2:

> GL_INVALID_VALUE is generated if transpose is not GL_FALSE.

<https://www.khronos.org/registry/OpenGL-Refpages/es2.0/xhtml/glUniform.xml>
modules/video_output/opengl/fragment_shaders.c