From e08575a2b22af83e9c83eebe3d2e7846ac51629e Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 7 Jul 2018 12:30:35 +0200 Subject: [PATCH] Remove an unused sampler. --- flow.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/flow.cpp b/flow.cpp index 74b0fd0..fa0ab38 100644 --- 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, -- 2.39.2