Fix first frame being upside down with motion blur shader.

This commit is contained in:
Brandon Wright 2018-05-19 14:09:21 -05:00
parent f1cab4ab17
commit 0d75e78e79
1 changed files with 1 additions and 1 deletions

View File

@ -666,7 +666,7 @@ void GLSLShader::render(GLuint &orig, int width, int height, int viewport_width,
GL_TEXTURE_WRAP_T,
pass[i].wrap_mode);
glTexCoordPointer(2, GL_FLOAT, 0, tex_coords);
glTexCoordPointer(2, GL_FLOAT, 0, tex_coords + ((i == pass.size() - 1) ? 8 : 0));
glUseProgram (pass[i].program);
set_shader_vars(i);