Project

General

Profile

« Previous | Next » 

Revision fbe9542f

Added by Leszek Koltunski about 5 years ago

Correct the same bug for DistortedTextures and DistortedFramebuffers: only mark them for creation when we actually have everything ready, i.e. as the last statement in the constructor.

View differences:

src/main/java/org/distorted/library/main/DistortedTexture.java
117 117
    {
118 118
    super(width,height,NOT_CREATED_YET,1,1,type);
119 119
    mBmp= null;
120
    markForCreation();
120 121
    }
121 122

  
122 123
///////////////////////////////////////////////////////////////////////////////////////////////////
......
127 128
 */
128 129
  public DistortedTexture(int width, int height)
129 130
    {
130
    super(width,height,NOT_CREATED_YET,1,1,TYPE_USER);
131
    mBmp= null;
131
    this(width,height,TYPE_USER);
132 132
    }
133 133

  
134 134
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff