From: Steinar H. Gunderson Date: Sat, 7 Jul 2018 10:30:35 +0000 (+0200) Subject: Remove an unused sampler. X-Git-Tag: 1.8.0~76^2~232 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e08575a2b22af83e9c83eebe3d2e7846ac51629e;p=nageru Remove an unused sampler. --- 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,