]> git.sesse.net Git - nageru/commitdiff
Remove an unused sampler.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 7 Jul 2018 10:30:35 +0000 (12:30 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 7 Jul 2018 10:30:35 +0000 (12:30 +0200)
flow.cpp

index 74b0fd03375098891bd082fdc3a93779af8ada72..fa0ab38911ee8ecb63566570710b8a26f3111dac 100644 (file)
--- a/flow.cpp
+++ b/flow.cpp
@@ -32,7 +32,7 @@ constexpr unsigned finest_level = 1;
 constexpr unsigned patch_size_pixels = 12;
 
 // Some global OpenGL objects.
-GLuint nearest_sampler, linear_sampler, mipmap_sampler;
+GLuint nearest_sampler, linear_sampler;
 GLuint vertex_vbo;
 
 string read_file(const string &filename)
@@ -443,12 +443,6 @@ int main(void)
        glSamplerParameteri(linear_sampler, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
        glSamplerParameteri(linear_sampler, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
 
-       glCreateSamplers(1, &mipmap_sampler);
-       glSamplerParameteri(mipmap_sampler, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
-       glSamplerParameteri(mipmap_sampler, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
-       glSamplerParameteri(mipmap_sampler, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
-       glSamplerParameteri(mipmap_sampler, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
-
        float vertices[] = {
                0.0f, 1.0f,
                0.0f, 0.0f,