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/DistortedSurface.java
43 43
    {
44 44
    super(type);
45 45

  
46
    if( create!=DONT_CREATE ) markForCreation();
47

  
48 46
    mNumFBOs      = numfbos;
49 47
    mNumColors    = numcolors;
50 48
    mWidth        = width ;

Also available in: Unified diff