]> git.tdb.fi Git - libs/gl.git/blobdiff - source/technique.h
Throw key_error if an inherited Technique uses nonexistent texture slot
[libs/gl.git] / source / technique.h
index 7ea695378714d669dabfd8104030664fc1d42787..bed1db3385046e23af3311fc7dd649cd8fc8c0a1 100644 (file)
@@ -50,7 +50,7 @@ public:
        bool has_pass(const Tag &) const;
        const RenderPass &get_pass(const Tag &) const;
        const PassMap &get_passes() const { return passes; }
-       void replace_texture(const std::string &, const Texture &);
+       bool replace_texture(const std::string &, const Texture &);
        bool has_shaders() const;
 };