Changeset 2839 for trunk/tools


Ignore:
Timestamp:
Aug 2, 2013, 8:25:08 PM (6 years ago)
Author:
sam
Message:

gpu: add SetDepthMask/GetDepthMask to render contexts.

Location:
trunk/tools/neercs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/neercs/term/pty.cpp

    r2816 r2839  
    179179                    sent += nr;
    180180
    181                 if (sent >= 0)
    182                     return sent;
     181                return sent;
    183182            }
    184183        }
  • trunk/tools/neercs/video/render.cpp

    r2817 r2839  
    862862int Render::InitDrawResources(void)
    863863{
    864     glDepthMask(GL_TRUE);     // do not write z-buffer
    865 
    866864    /* initialise framebuffer objects */
    867865    fbo_back = new Framebuffer(screen_size);
     
    14801478    rc.SetBlendFunc(BlendFunc::Disabled, BlendFunc::Disabled);
    14811479    rc.SetDepthFunc(DepthFunc::Disabled);
     1480    rc.SetDepthMask(DepthFunc::Disabled);
    14821481
    14831482    glEnableClientState(GL_VERTEX_ARRAY);
     
    17261725        Ticker::Unref(m_fps_debug);
    17271726}
     1727
Note: See TracChangeset for help on using the changeset viewer.