Revision c204c69d
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedSurface.java | ||
---|---|---|
38 | 38 |
private static boolean mToDo = false; |
39 | 39 |
private static LinkedList<DistortedSurface> mDoneList = new LinkedList<>(); |
40 | 40 |
private static LinkedList<DistortedSurface> mToDoList = new LinkedList<>(); |
41 |
private static long mNextID = 0; |
|
41 | 42 |
|
43 |
private long mID; |
|
42 | 44 |
private boolean mMarked; |
43 | 45 |
int[] mColorH = new int[1]; |
44 | 46 |
int mSizeX, mSizeY; // in screen space |
... | ... | |
100 | 102 |
} |
101 | 103 |
|
102 | 104 |
mToDo = true; |
105 |
mNextID = 0; |
|
103 | 106 |
} |
104 | 107 |
|
105 | 108 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
121 | 124 |
mSizeY = height; |
122 | 125 |
mColorH[0]= color; |
123 | 126 |
mMarked = false; |
127 |
mID = mNextID++; |
|
124 | 128 |
|
125 | 129 |
if( color!=DONT_CREATE ) |
126 | 130 |
{ |
... | ... | |
152 | 156 |
*/ |
153 | 157 |
public long getID() |
154 | 158 |
{ |
155 |
return mColorH[0];
|
|
159 |
return mID;
|
|
156 | 160 |
} |
157 | 161 |
|
158 | 162 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
New, cleaner way to create/destroy DistortedSurfaces.
Serious regression in StarWars (crashes!). Looks like the Node's internal FBO is being deleted and not re-created in time.