X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=flow.cpp;h=fa0ab38911ee8ecb63566570710b8a26f3111dac;hb=e08575a2b22af83e9c83eebe3d2e7846ac51629e;hp=74b0fd03375098891bd082fdc3a93779af8ada72;hpb=64f4f922b0b268634578fcc2038a23de47c7995b;p=nageru 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,