Browse Source

scene: for now, restore the ortho cam when blitting tiles.

undefined
Sam Hocevar 11 years ago
parent
commit
da12e9cf97
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/scene.cpp

+ 4
- 0
src/scene.cpp View File

@@ -197,6 +197,8 @@ void Scene::Render() // XXX: rename to Blit()
/* Early test if nothing needs to be rendered */
if (data->m_tiles.Count())
{
PushCamera(data->m_default_cam);

#if defined USE_D3D9 || defined _XBOX
#elif !defined HAVE_GLES_2X
glEnable(GL_TEXTURE_2D);
@@ -287,6 +289,8 @@ void Scene::Render() // XXX: rename to Blit()
#elif !defined HAVE_GLES_2X
glDisable(GL_TEXTURE_2D);
#endif

PopCamera(data->m_default_cam);
}

if (data->m_lines.Count())


Loading…
Cancel
Save