Revision 3f5b2cb3
Added by Leszek Koltunski over 8 years ago
| src/main/java/org/distorted/examples/save/SaveRenderer.java | ||
|---|---|---|
| 174 | 174 |
} |
| 175 | 175 |
else |
| 176 | 176 |
{
|
| 177 |
android.util.Log.e("Save", "Error trying to read from offscreen FBO");
|
|
| 177 |
android.util.Log.e("Save", "Error trying to read from offscreen FBO, textureID="+textureID);
|
|
| 178 | 178 |
} |
| 179 | 179 |
|
| 180 | 180 |
isSaving = false; |
| src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java | ||
|---|---|---|
| 86 | 86 |
"her people and restore", |
| 87 | 87 |
"freedom to the galaxy...." }; // four-dot. |
| 88 | 88 |
|
| 89 |
private final int NUM_STARS = 40;
|
|
| 89 |
private final int NUM_STARS = 0; |
|
| 90 | 90 |
|
| 91 | 91 |
private final int CRAWL_COLOR = 0xffffe81f; |
| 92 | 92 |
private final int GFFA_COLOR = 0xff0000ff; |
| ... | ... | |
| 128 | 128 |
mCrawlEffects = new DistortedEffects(); |
| 129 | 129 |
mCrawlBackgroundEffects = new DistortedEffects(); |
| 130 | 130 |
|
| 131 |
mStarEffects = new DistortedEffects[NUM_STARS]; |
|
| 132 |
mStarEffects[0] = new DistortedEffects(); |
|
| 131 |
if( NUM_STARS>0 ) |
|
| 132 |
{
|
|
| 133 |
mStarEffects = new DistortedEffects[NUM_STARS]; |
|
| 134 |
mStarEffects[0] = new DistortedEffects(); |
|
| 133 | 135 |
|
| 134 |
for(int i=1; i<NUM_STARS; i++) mStarEffects[i] = new DistortedEffects(mStarEffects[0],Distorted.CLONE_VERTEX); |
|
| 136 |
for (int i = 1; i < NUM_STARS; i++) |
|
| 137 |
mStarEffects[i] = new DistortedEffects(mStarEffects[0], Distorted.CLONE_VERTEX); |
|
| 138 |
} |
|
| 135 | 139 |
|
| 136 | 140 |
mScreen = new DistortedScreen(); |
| 137 | 141 |
mScreen.setProjection(60.0f, 0.0f, 0.0f); |
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.