diff options
author | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-02-16 19:56:25 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-02-16 19:56:53 +0100 |
commit | d3cf9b24cf80eb4d317964e887c591809a149cef (patch) | |
tree | 064c4fb549ddac614890e61006ea0c1a273550be /libavdevice | |
parent | 05e9e3342fe10483458b456e9111537f07c1ce22 (diff) | |
download | ffmpeg-streaming-d3cf9b24cf80eb4d317964e887c591809a149cef.zip ffmpeg-streaming-d3cf9b24cf80eb4d317964e887c591809a149cef.tar.gz |
lavd/opengl_enc_shaders: fix gray* shader
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/opengl_enc_shaders.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/opengl_enc_shaders.h b/libavdevice/opengl_enc_shaders.h index 6378dfb..ed8b3d3 100644 --- a/libavdevice/opengl_enc_shaders.h +++ b/libavdevice/opengl_enc_shaders.h @@ -181,7 +181,7 @@ static const char * const FF_OPENGL_FRAGMENT_SHADER_GRAY = "varying vec2 texture_coordinate;" "void main()" "{" - "float c = texture2D(u_texture0, texture_coordinate);" + "float c = texture2D(u_texture0, texture_coordinate).r;" "gl_FragColor = vec4(c, c, c, 1.0);" "}"; |