Revision 395cabff
Added by Leszek Koltunski almost 3 years ago
| src/main/java/org/distorted/examples/flatblur2/FlatBlur2Renderer.java | ||
|---|---|---|
| 33 | 33 |
{
|
| 34 | 34 |
private final GLSurfaceView mView; |
| 35 | 35 |
private final DistortedScreen mScreen; |
| 36 |
private OverlayStars mStars; |
|
| 36 | 37 |
|
| 37 | 38 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 38 | 39 |
|
| ... | ... | |
| 75 | 76 |
|
| 76 | 77 |
public void button1() |
| 77 | 78 |
{
|
| 78 |
OverlayStars stars = new OverlayStars();
|
|
| 79 |
stars.startOverlay(mScreen);
|
|
| 79 |
mStars = new OverlayStars();
|
|
| 80 |
mStars.startOverlay(mScreen);
|
|
| 80 | 81 |
} |
| 81 | 82 |
|
| 82 | 83 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 83 | 84 |
|
| 84 | 85 |
public void button2() |
| 85 | 86 |
{
|
| 86 |
|
|
| 87 |
if( mStars!=null ) |
|
| 88 |
{
|
|
| 89 |
mStars.button2(); |
|
| 90 |
} |
|
| 87 | 91 |
} |
| 88 | 92 |
} |
Also available in: Unified diff
simplify the crash app.