Project

General

Profile

« Previous | Next » 

Revision f8377ef8

Added by Leszek Koltunski about 7 years ago

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.

View differences:

src/main/java/org/distorted/library/DistortedOutputSurface.java
99 99
 */
100 100
  public void render(long time)
101 101
    {
102
    DistortedSurface.deleteAllMarked();
103
    create();
102
    toDo();
104 103

  
105 104
    for(int i=0; i<mNumChildren; i++)
106 105
      {
......
144 143
      {
145 144
      mWidth = width;
146 145
      mHeight= height;
147
      createProjection();
148 146
      mSizeX = width;
149 147
      mSizeY = height;
150
      if( mColorH[0]>0 ) markForDeletion();
148

  
149
      createProjection();
150

  
151
      if( mColorH[0]>0 )
152
        {
153
        moveToToDo();
154
        recreate();
155
        }
151 156
      }
152 157
    }
153 158

  

Also available in: Unified diff