diff options
-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);" "}"; |