]> git.sesse.net Git - nageru/blobdiff - mixer.cpp
Make the YCbCr shader stop using features that are deprecated in GLSL 1.30.
[nageru] / mixer.cpp
index c92d9787099a6cee6ab4ef160271c80fe1aa4df2..1367f303a7b73f3a404a641fd9fd691dde521601 100644 (file)
--- 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<string> frag_shader_outputs;
        cbcr_program_num = resource_pool->compile_glsl_program(cbcr_vert_shader, cbcr_frag_shader, frag_shader_outputs);