Changeset 1487


Ignore:
Timestamp:
Jun 17, 2012, 9:35:28 AM (8 years ago)
Author:
sam
Message:

neercs: remove useless alpha test that was causing rendering errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/neercs/video/render.cpp

    r1484 r1487  
    244244
    245245        m_fbo->Bind();
     246        glDisable(GL_DEPTH_TEST);
    246247        glEnable(GL_POINT_SPRITE);
    247248        //glEnable(GL_VERTEX_PROGRAM_POINT_SIZE);
     
    405406    beat_speed = 2.0f;
    406407    /*-------------------------*/
    407     glClearColor(screen_color.r, screen_color.g, screen_color.b, 1.0f);
    408408}
    409409
    410410int InitGL(void)
    411411{
    412     glClearDepth(1.0f);                                // set depth buffer
    413412    glDepthMask(GL_TRUE);                            // do not write z-buffer
    414413    glEnable(GL_CULL_FACE);                        // disable cull face
     
    580579    text_render->Render(screen_size, ivec2(8, 8));
    581580
    582     /* Clear the back buffer */
    583581#if SHADER
    584582    if(shader_flag)
    585     {
    586583        fbo_back->Bind();
    587         fbo_back->Clear(vec4(screen_color, 0.0f), 1.0f);
    588     }
    589     else
    590     {
    591         glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
    592     }
    593 #else
    594     glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
    595584#endif
     585
     586    /* Clear the back buffer */
     587    glClearColor(screen_color.r, screen_color.g, screen_color.b, 1.0f);
     588    glClearDepth(1.0f); // set depth buffer
     589    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    596590
    597591    text_render->Blit();
Note: See TracChangeset for help on using the changeset viewer.