~stolowski/nux/merge-trunk

« back to all changes in this revision

Viewing changes to NuxGraphics/RenderingPipeGLSL.cpp

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2013-05-01 17:01:17 UTC
  • mfrom: (779.1.1 nux)
  • Revision ID: tarmac-20130501170117-lnkqq0l8utgummrl
RenderingPipe: always use the depth buffer texture when getting the CopyTexture. Fixes: https://bugs.launchpad.net/bugs/1087534.

Approved by Eleni Maria Stea, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3166
3166
    }
3167
3167
 
3168
3168
    CHECKGL(glClearColor(0, 0, 0, 0));
3169
 
    ObjectPtr<IOpenGLBaseTexture> depth_buffer(NULL);
3170
 
    SetFrameBufferHelper(_offscreen_fbo, dst_device_texture, depth_buffer, width, height);
 
3169
    SetFrameBufferHelper(_offscreen_fbo, dst_device_texture, _offscreen_depth_rt0, width, height);
3171
3170
    CHECKGL(glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT));
3172
3171
 
3173
3172
    QRP_GLSL_1Tex(0, 0, width, height, src_device_texture, texxform0, c0);