summaryrefslogtreecommitdiffhomepage
path: root/tile-shader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tile-shader.cpp')
-rw-r--r--tile-shader.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tile-shader.cpp b/tile-shader.cpp
index 3d42ef80..dd66955b 100644
--- a/tile-shader.cpp
+++ b/tile-shader.cpp
@@ -25,9 +25,6 @@ tile_shader::tile_shader()
CORRADE_INTERNAL_ASSERT_OUTPUT(link());
- _projection_uniform = uniformLocation("projection");
- _y_scale_uniform = uniformLocation("y_scale");
-
setUniform(uniformLocation("textureData"), TextureUnit);
}
@@ -37,7 +34,7 @@ tile_shader& tile_shader::bindTexture(GL::Texture2D& texture)
return *this;
}
-tile_shader& tile_shader::set_projection(const Matrix4& mat, float y_scale)
+tile_shader& tile_shader::set_projection(const Vector2& mat, float y_scale)
{
setUniform(_projection_uniform, mat);
setUniform(_y_scale_uniform, y_scale);