From 2a2675938ea357a6a879486051dd6fea72c083b8 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Sat, 19 May 2018 14:10:48 -0500 Subject: [PATCH] Use lastpass variable. --- shaders/glsl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/glsl.cpp b/shaders/glsl.cpp index b4d2086a..6764d967 100644 --- a/shaders/glsl.cpp +++ b/shaders/glsl.cpp @@ -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 + ((i == pass.size() - 1) ? 8 : 0)); + glTexCoordPointer(2, GL_FLOAT, 0, tex_coords + (lastpass ? 8 : 0)); glUseProgram (pass[i].program); set_shader_vars(i);