]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/renderpass.cpp
Allow materials to return per-texture samplers
[libs/gl.git] / source / materials / renderpass.cpp
index 4ab72b568d32a9704c1c56ff90dab503e7b8a297..70143e96a497c7e299f088855c83903c4397fedc 100644 (file)
@@ -9,7 +9,6 @@
 #include "renderer.h"
 #include "texture.h"
 #include "texture2d.h"
-#include "texturing.h"
 #include "uniform.h"
 
 using namespace std;
@@ -31,7 +30,7 @@ void RenderPass::set_material_textures()
 {
        const Tag *material_texture_tags = material->get_texture_tags();
        for(const Tag *tag=material_texture_tags; tag->id; ++tag)
-               set_texture(*tag, material->get_texture(*tag), material->get_sampler());
+               set_texture(*tag, material->get_texture(*tag), material->get_sampler(*tag));
 }
 
 void RenderPass::maybe_create_material_shader()