X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fsampler.cpp;h=c810789b605130626c1e84d4f27ecd9f7ce6a81e;hb=e92de029768eef5f0fd744329e589161b46d0762;hp=ffd7762568f665baf551808558a3231ca8ba93fe;hpb=9b3bce7ae76ff8c0c81315d2505ea96bf422a318;p=libs%2Fgl.git diff --git a/source/core/sampler.cpp b/source/core/sampler.cpp index ffd77625..c810789b 100644 --- a/source/core/sampler.cpp +++ b/source/core/sampler.cpp @@ -53,7 +53,7 @@ void Sampler::update() const { glSamplerParameteri(id, GL_TEXTURE_COMPARE_MODE, (compare ? GL_COMPARE_R_TO_TEXTURE : GL_NONE)); if(compare) - glSamplerParameteri(id, GL_TEXTURE_COMPARE_FUNC, cmp_func); + glSamplerParameteri(id, GL_TEXTURE_COMPARE_FUNC, get_gl_predicate(cmp_func)); } dirty_params = 0;