]> git.tdb.fi Git - libs/gl.git/blobdiff - demos/shaders.cpp
Set both min and mag filters when exporting textures
[libs/gl.git] / demos / shaders.cpp
index 6b7336fe6c50307f28459add241df02eaa844c43..44d0b440795cad881dc8f4c6cad7916f96a070c9 100644 (file)
@@ -16,8 +16,8 @@
 #include <msp/gl/texture2d.h>
 #include <msp/gl/texturing.h>
 #include <msp/time/timestamp.h>
+#include <msp/time/timedelta.h>
 #include <msp/time/utils.h>
-#include <msp/time/units.h>
 
 using namespace std;
 using namespace Msp;
@@ -71,7 +71,7 @@ int main()
                feat.material = i/4>0;
                feat.texture = i/4>1;
                feat.lighting = i%4>0;
-               feat.normalmap = i%4>1;
+               feat.normal_map = i%4>1;
                feat.specular = i%4>2;
                programs.push_back(new GL::Program(feat));
        }