opengl: apply orientation in fragment shader
commitcb16845b7e1244f3a7085276489f9dd2e01a2949
authorRomain Vimont <rom1v@videolabs.io>
Tue, 4 Feb 2020 10:41:48 +0000 (4 11:41 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 23 Mar 2020 10:29:03 +0000 (23 11:29 +0100)
treedeeeb01abc91ba97335d462eb8922b4eee3dba10
parentd23e8e33fab5be576d805d124acb5a8ccdf839a2
opengl: apply orientation in fragment shader

Apply all texture coordinates transformation in the fragment shader.

This is necessary to be able to implement a renderer independent of the
input picture (i.e. without even knowing the details) by using a single
GLSL function "vlc_texture(vec2 pic_coords)".

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_output/opengl/fragment_shaders.c
modules/video_output/opengl/renderer.c