From: Steinar H. Gunderson Date: Wed, 3 Feb 2016 17:52:51 +0000 (+0100) Subject: Make the YCbCr shader stop using features that are deprecated in GLSL 1.30. X-Git-Tag: 1.1.0~18 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=16752acedff8a5b8ee4919d1e10b78025ad09d9b;p=nageru Make the YCbCr shader stop using features that are deprecated in GLSL 1.30. --- diff --git a/mixer.cpp b/mixer.cpp index c92d978..1367f30 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -191,8 +191,9 @@ Mixer::Mixer(const QSurfaceFormat &format, unsigned num_cards) "#version 130 \n" "in vec2 tc0; \n" "uniform sampler2D cbcr_tex; \n" + "out vec4 FragColor; \n" "void main() { \n" - " gl_FragColor = texture2D(cbcr_tex, tc0); \n" + " FragColor = texture(cbcr_tex, tc0); \n" "} \n"; vector frag_shader_outputs; cbcr_program_num = resource_pool->compile_glsl_program(cbcr_vert_shader, cbcr_frag_shader, frag_shader_outputs);