Changeset 1721


Ignore:
Timestamp:
Aug 12, 2012, 4:41:22 PM (8 years ago)
Author:
sam
Message:

scene: avoid doing hundreds of useless OpenGL calls if no 2D sprite is
being displayed in the scene.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scene.cpp

    r1513 r1721  
    146146void Scene::Render() // XXX: rename to Blit()
    147147{
     148    /* Early exit if nothing needs to be rendered */
     149    if (!data->tiles.Count())
     150        return;
     151
    148152    if (!data->m_shader)
    149153    {
Note: See TracChangeset for help on using the changeset viewer.