Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[blender.git] / source / gameengine / BlenderRoutines / KX_BlenderRenderTools.cpp
index ee9dae1..8ed36e8 100644 (file)
@@ -284,10 +284,12 @@ void KX_BlenderRenderTools::RenderText2D(RAS_TEXT_RENDER_MODE mode,
                                                                                 int width,
                                                                                 int height)
 {
+       STR_String tmpstr(text);
+
        if(mode == RAS_IRenderTools::RAS_TEXT_PADDED)
-               BL_print_gamedebug_line_padded(text, xco, yco, width, height);
+               BL_print_gamedebug_line_padded(tmpstr.Ptr(), xco, yco, width, height);
        else
-               BL_print_gamedebug_line(text, xco, yco, width, height);
+               BL_print_gamedebug_line(tmpstr.Ptr(), xco, yco, width, height);
 }
 
 /* Render Text renders text into a (series of) polygon, using a texture font,
@@ -388,4 +390,4 @@ void KX_BlenderRenderTools::Update2DFilter(vector<STR_String>& propNames, void*
 void KX_BlenderRenderTools::Render2DFilters(RAS_ICanvas* canvas)
 {
        m_filtermanager.RenderFilters(canvas);
-}
+}
\ No newline at end of file