Project

General

Profile

« Previous | Next » 

Revision a07e0204

Added by Leszek Koltunski almost 6 years ago

Start merging master and OIT.

View differences:

src/main/java/org/distorted/library/main/DistortedOutputSurface.java
488 488

  
489 489
  private void clearBuffer(int fbo)
490 490
    {
491
    GLES31.glStencilMask(0xff);
492
    GLES31.glDepthMask(true);
493
    GLES31.glColorMask(true,true,true,true);
494
    GLES31.glClearColor(1.0f,1.0f,1.0f,0.0f);
495
    GLES31.glClearDepthf(1.0f);
496
    GLES31.glClearStencil(0);
491
    DistortedRenderState.colorDepthStencilOn();
492

  
493
    GLES31.glClearColor(mClearR, mClearG, mClearB, mClearA);
494
    GLES31.glClearDepthf(mClearDepth);
495
    GLES31.glClearStencil(mClearStencil);
497 496

  
498 497
    GLES31.glBindFramebuffer(GLES31.GL_FRAMEBUFFER, mFBOH[fbo]);
499 498
    GLES31.glFramebufferTexture2D(GLES31.GL_FRAMEBUFFER, GLES31.GL_COLOR_ATTACHMENT0, GLES31.GL_TEXTURE_2D, mColorH[2*fbo+1], 0);
500 499
    GLES31.glClear(GLES31.GL_COLOR_BUFFER_BIT|GLES31.GL_DEPTH_BUFFER_BIT|GLES31.GL_STENCIL_BUFFER_BIT);
501 500
    GLES31.glFramebufferTexture2D(GLES31.GL_FRAMEBUFFER, GLES31.GL_COLOR_ATTACHMENT0, GLES31.GL_TEXTURE_2D, mColorH[2*fbo  ], 0);
502 501
    GLES31.glClear(GLES31.GL_COLOR_BUFFER_BIT);
502

  
503
    DistortedRenderState.colorDepthStencilRestore();
503 504
    }
504 505

  
505 506
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff