Revision 6770ef46
Added by Leszek Koltunski over 6 years ago
src/main/java/org/distorted/library/effect/PostprocessEffectBlur.java | ||
---|---|---|
144 | 144 |
{ |
145 | 145 |
if( mProgram1 ==null) |
146 | 146 |
{ |
147 |
mProgram1 = mPrograms.get(mIndex1); |
|
148 |
mProgram2 = mPrograms.get(mIndex2); |
|
147 |
try |
|
148 |
{ |
|
149 |
mProgram1 = mPrograms.get(mIndex1); |
|
150 |
mProgram2 = mPrograms.get(mIndex2); |
|
151 |
} |
|
152 |
catch(Exception ex) |
|
153 |
{ |
|
154 |
return 0; |
|
155 |
} |
|
149 | 156 |
} |
150 | 157 |
|
151 | 158 |
DistortedRenderState.useStencilMark(); |
src/main/java/org/distorted/library/effect/PostprocessEffectGlow.java | ||
---|---|---|
148 | 148 |
{ |
149 | 149 |
if( mProgram1 ==null) |
150 | 150 |
{ |
151 |
mProgram1 = mPrograms.get(mIndex1); |
|
152 |
mProgram2 = mPrograms.get(mIndex2); |
|
151 |
try |
|
152 |
{ |
|
153 |
mProgram1 = mPrograms.get(mIndex1); |
|
154 |
mProgram2 = mPrograms.get(mIndex2); |
|
155 |
} |
|
156 |
catch(Exception ex) |
|
157 |
{ |
|
158 |
return 0; |
|
159 |
} |
|
153 | 160 |
} |
154 | 161 |
|
155 | 162 |
DistortedRenderState.useStencilMark(); |
Also available in: Unified diff
Postprocessing: dont crash when we fail to compile postprocessing programs