Revision f8377ef8
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedTexture.java | ||
---|---|---|
55 | 55 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
56 | 56 |
// must be called from a thread holding OpenGL Context |
57 | 57 |
|
58 |
public void create()
|
|
58 |
void create() |
|
59 | 59 |
{ |
60 | 60 |
if( mBmp!=null && mColorH !=null ) |
61 | 61 |
{ |
... | ... | |
94 | 94 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
95 | 95 |
// called from onDestroy(); mark OpenGL assets as 'not created' |
96 | 96 |
|
97 |
void destroy()
|
|
97 |
void recreate()
|
|
98 | 98 |
{ |
99 | 99 |
if( mColorH[0]!=DONT_CREATE ) mColorH[0] = NOT_CREATED_YET; |
100 | 100 |
} |
... | ... | |
148 | 148 |
public void setTexture(Bitmap bmp) |
149 | 149 |
{ |
150 | 150 |
mBmp= bmp; |
151 |
moveToToDo(); |
|
151 | 152 |
} |
152 | 153 |
} |
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.