+#ifdef DEBUG
+ fbo.set_debug_name(name+" [FBO]");
+ unsigned i = 0;
+ for(const unsigned char *j=format.begin(); j!=format.end(); ++i, ++j)
+ {
+ unsigned type = get_output_type(*j);
+
+ string tex_name;
+ if(type>=get_output_type(RENDER_DEPTH))
+ tex_name = name+"/depth";
+ else
+ tex_name = Msp::format("%s/color%d", name, type);
+
+ textures[i]->set_debug_name(tex_name+".tex2d");
+ }
+#else
+ (void)name;
+#endif