Revision 4ebbb17a
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/DistortedFramebuffer.java | ||
---|---|---|
137 | 137 |
} |
138 | 138 |
} |
139 | 139 |
|
140 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
141 |
// called from onDestroy(); mark OpenGL assets as 'not created' |
|
142 |
|
|
143 |
void destroy() |
|
144 |
{ |
|
145 |
if( mColorH[0]!=DONT_CREATE ) mColorH[0] = NOT_CREATED_YET; |
|
146 |
if( mDepthEnabled ) mDepthH[0] = NOT_CREATED_YET; |
|
147 |
} |
|
148 |
|
|
140 | 149 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
141 | 150 |
|
142 | 151 |
void setAsOutput() |
src/main/java/org/distorted/library/DistortedRenderable.java | ||
---|---|---|
43 | 43 |
|
44 | 44 |
abstract void create(); |
45 | 45 |
abstract void delete(); |
46 |
abstract void destroy(); |
|
46 | 47 |
|
47 | 48 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
48 | 49 |
// must be called form a thread holding OpenGL Context |
... | ... | |
96 | 97 |
{ |
97 | 98 |
for( DistortedRenderable ren : mList) |
98 | 99 |
{ |
99 |
ren.delete();
|
|
100 |
ren.destroy();
|
|
100 | 101 |
ren.mMarked = false; |
101 | 102 |
} |
102 | 103 |
|
103 | 104 |
mListMarked = false; |
104 |
mList.clear(); |
|
105 | 105 |
} |
106 | 106 |
|
107 | 107 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
src/main/java/org/distorted/library/DistortedTexture.java | ||
---|---|---|
97 | 97 |
} |
98 | 98 |
} |
99 | 99 |
|
100 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
101 |
// called from onDestroy(); mark OpenGL assets as 'not created' |
|
102 |
|
|
103 |
void destroy() |
|
104 |
{ |
|
105 |
if( mColorH[0]!=DONT_CREATE ) mColorH[0] = NOT_CREATED_YET; |
|
106 |
} |
|
100 | 107 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
101 | 108 |
|
102 | 109 |
static void getUniforms(int mProgramH) |
Also available in: Unified diff
Fix the MultiBlur regression