Project

General

Profile

« Previous | Next » 

Revision 5b959cc5

Added by Leszek Koltunski almost 7 years ago

Some improvements to DistortedRenderState.

View differences:

src/main/java/org/distorted/library/DistortedFramebuffer.java
123 123
    {
124 124
    if( mColorH[0]>0 )
125 125
      {
126
      if( mDepthStencilH[0]>0 )
127
        {
128
        GLES30.glDeleteTextures(1, mDepthStencilH, 0);
129
        mDepthStencilH[0]=0;
130
        mDepthStencilCreated = NOT_CREATED_YET;
131
        }
132

  
133 126
      GLES30.glDeleteTextures(1, mColorH, 0);
134 127
      mColorH[0] = 0;
135 128
      mColorCreated = NOT_CREATED_YET;
129
      }
136 130

  
137
      GLES30.glDeleteFramebuffers(1, mFBOH, 0);
138
      mFBOH[0] = 0;
131
    if( mDepthStencilH[0]>0 )
132
      {
133
      GLES30.glDeleteTextures(1, mDepthStencilH, 0);
134
      mDepthStencilH[0]=0;
135
      mDepthStencilCreated = NOT_CREATED_YET;
139 136
      }
137

  
138
    GLES30.glDeleteFramebuffers(1, mFBOH, 0);
139
    mFBOH[0] = 0;
140 140
    }
141 141

  
142 142
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff