BGE: Fix for [#34781] "bge.texture.ImageRender does not show Font object" reported by Monster.

This fix is mostly based off of HG1's patch from the bug report, which had ImageRender::Render() call KX_KetsjiEngine::RenderFonts(). However, I have moved RenderFonts() from KX_KetsjiEngine to KX_Scene where all of the other font and rendering functions are. The real fix for this mess would be to not have ImageRender::Render() have so much duplicate code from KX_KetsjiEngine::Render(), but that's a code cleanup problem for another day.
This commit is contained in:
Mitchell Stokes
2013-06-20 03:50:02 +00:00
parent 4eded6dbdc
commit 1e64732d52
5 changed files with 19 additions and 25 deletions

View File

@@ -275,6 +275,8 @@ void ImageRender::Render()
m_scene->RenderBuckets(camtrans, m_rasterizer, m_rendertools);
m_scene->RenderFonts();
// restore the canvas area now that the render is completed
m_canvas->GetWindowArea() = area;
}