Project

General

Profile

« Previous | Next » 

Revision 8b36dabf

Added by Leszek Koltunski over 3 years ago

Plug a major memory leak.
Still one more leak remains - a similar UniformBuffer has to be markedForDeletion in the EffectQueues.

View differences:

src/main/java/org/distorted/library/mesh/MeshBase.java
49 49
   {
50 50
   private static final int ASSOC_UBO_BINDING  = 3;
51 51
   private static final int CENTER_UBO_BINDING = 4;
52
           static final int MAX_EFFECT_COMPONENTS= 110;
52
           static final int MAX_EFFECT_COMPONENTS= 100;
53 53

  
54 54
   // sizes of attributes of an individual vertex.
55 55
   private static final int POS_DATA_SIZE= 3; // vertex coordinates: x,y,z
......
1072 1072
     mVBO1.markForDeletion();
1073 1073
     mVBO2.markForDeletion();
1074 1074
     mTFO.markForDeletion();
1075
     mUBA.markForDeletion();
1076
     mUBC.markForDeletion();
1075 1077
     }
1076 1078

  
1077 1079
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff