]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/text.cpp
Rename RenderPass to RenderMethod
[libs/gl.git] / source / render / text.cpp
index b3d85deb899a5f837d9e0d64d8720c89925b14bc..cb7f998e9bb2a38d4102024fc4648e8461b38f0c 100644 (file)
@@ -1,6 +1,7 @@
 #include "meshbuilder.h"
 #include "program.h"
 #include "renderer.h"
+#include "technique.h"
 #include "text.h"
 #include "texture2d.h"
 
@@ -26,8 +27,8 @@ void Text::set_technique(const Technique *tech, Tag tex_slot)
 {
        if(tech)
        {
-               if(!tex_slot.id && tech->has_pass(Tag()))
-                       if(const Program *shprog = tech->get_pass(Tag()).get_shader_program())
+               if(!tex_slot.id && tech->has_method(Tag()))
+                       if(const Program *shprog = tech->get_method(Tag()).get_shader_program())
                        {
                                if(shprog->get_uniform_location(Tag("font_tex"))>=0)
                                        tex_slot = "font_tex";