Project

General

Profile

« Previous | Next » 

Revision 68f96a01

Added by Leszek Koltunski over 7 years ago

Fix in Framebuffer

View differences:

src/main/java/org/distorted/library/main/DistortedFramebuffer.java
98 98
      }
99 99
    if( mDepthStencilCreated==DONT_CREATE && mDepthStencilH[0]>0 ) // we need to detach and recreate the DEPTH attachment.
100 100
      {
101
      // OpenGL ES 3.0.5 spec, chapter 4.4.2.4 :
102
      // "Note that the texture image is specifically not detached from any other framebuffer objects.
103
      //  Detaching the texture image from any other framebuffer objects is the responsibility of the application."
104
      GLES30.glFramebufferTexture2D(GLES30.GL_FRAMEBUFFER, GLES30.GL_DEPTH_STENCIL_ATTACHMENT, GLES30.GL_TEXTURE_2D, 0, 0);
101 105
      GLES30.glDeleteTextures(1, mDepthStencilH, 0);
102 106
      mDepthStencilH[0]=0;
103 107
      }

Also available in: Unified diff