From 634bf31f905ece4ad1b4858b530322a0fa7f21d3 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 27 Dec 2014 02:14:19 +0200 Subject: [PATCH] Only require ARB_shadow when enabling texture compare mode --- source/texture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/texture.cpp b/source/texture.cpp index 22bdebdf..6484440e 100644 --- a/source/texture.cpp +++ b/source/texture.cpp @@ -185,7 +185,8 @@ void Texture::auto_generate_mipmap() void Texture::set_compare_enabled(bool c) { - static Require _req(ARB_shadow); + if(c) + static Require _req(ARB_shadow); compare = c; update_parameter(COMPARE); } -- 2.43.0