Project

General

Profile

« Previous | Next » 

Revision 728a7820

Added by Leszek Koltunski over 3 years ago

Fix the fact that we would keep adding new InternalBuffers to the 'Done' list - split 'invalidate()' and 'recreate()' to two separate actions!

View differences:

src/main/java/org/distorted/library/mesh/MeshBase.java
180 180
     mVBO1= new InternalBuffer(GLES30.GL_ARRAY_BUFFER, GLES30.GL_STATIC_READ);
181 181
     mVertAttribs1= new float[mNumVertices*VERT1_ATTRIBS];
182 182
     System.arraycopy(original.mVertAttribs1,0,mVertAttribs1,0,mNumVertices*VERT1_ATTRIBS);
183
     mVBO1.invalidate();
184 183
     }
185 184

  
186 185
///////////////////////////////////////////////////////////////////////////////////////////////////
......
202 201
     mVBO2= new InternalBuffer(GLES30.GL_ARRAY_BUFFER, GLES30.GL_STATIC_READ);
203 202
     mVertAttribs2= new float[mNumVertices*VERT2_ATTRIBS];
204 203
     System.arraycopy(original.mVertAttribs2,0,mVertAttribs2,0,mNumVertices*VERT2_ATTRIBS);
205
     mVBO2.invalidate();
206 204
     }
207 205

  
208 206
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff