diff --git a/shaders.cpp b/shaders.cpp index 6e45d65c..ae0a0ec9 100644 --- a/shaders.cpp +++ b/shaders.cpp @@ -826,5 +826,12 @@ void set_depthwrite(bool b) { } } +void switch_to_text(const vector& v, const vector& t) { + glhr::be_textured(); + dynamicval pm(pmodel, mdUnchanged); + if(!svg::in) current_display->set_all(0); + vertices_texture(v, t, 0, 0); + } + } }