diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-06-20 07:50:02 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-06-20 07:50:02 +0400 |
commit | 1e64732d5264edef5af455febdf8567fc3472a05 (patch) | |
tree | 8b4d5a8862bf8458a4d5188ac41d32c14164c1ca /source/gameengine/VideoTexture | |
parent | 4eded6dbdcb3c0d451a0d5d5f0147be73b10f8af (diff) |
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.
Diffstat (limited to 'source/gameengine/VideoTexture')
-rw-r--r-- | source/gameengine/VideoTexture/ImageRender.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/gameengine/VideoTexture/ImageRender.cpp b/source/gameengine/VideoTexture/ImageRender.cpp index d251f4f7bcb..f184ab9bd1d 100644 --- a/source/gameengine/VideoTexture/ImageRender.cpp +++ b/source/gameengine/VideoTexture/ImageRender.cpp @@ -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; } |