X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=effect_chain.cpp;h=7d19ac3eb0df29861b5a19012d81d3f6d2810bde;hb=1f4a7aefd4a149e93a1dc41f85958e827670c98b;hp=3376daa98064df9c4e42edb2c319be6bdac9f7f6;hpb=d398770154ecc4bc95282dc45656789dd5686309;p=movit diff --git a/effect_chain.cpp b/effect_chain.cpp index 3376daa..7d19ac3 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -1537,10 +1537,10 @@ void EffectChain::render_to_fbo(GLuint dest_fbo, unsigned width, unsigned height // Now draw! float vertices[] = { + 0.0f, 1.0f, 0.0f, 0.0f, - 1.0f, 0.0f, 1.0f, 1.0f, - 0.0f, 1.0f + 1.0f, 0.0f }; GLuint vao; @@ -1552,7 +1552,7 @@ void EffectChain::render_to_fbo(GLuint dest_fbo, unsigned width, unsigned height GLuint position_vbo = fill_vertex_attribute(glsl_program_num, "position", 2, GL_FLOAT, sizeof(vertices), vertices); GLuint texcoord_vbo = fill_vertex_attribute(glsl_program_num, "texcoord", 2, GL_FLOAT, sizeof(vertices), vertices); // Same as vertices. - glDrawArrays(GL_QUADS, 0, 4); + glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); check_error(); cleanup_vertex_attribute(glsl_program_num, "position", position_vbo);