Project

General

Profile

« Previous | Next » 

Revision ccd98f1c

Added by Leszek Koltunski about 5 years ago

Correct a bug in DistortedBuffer: we only mark it for creation when we actually have all the data ready, otherwise it can happen that create(0 is called before setData() !

View differences:

src/main/java/org/distorted/library/main/DistortedSurface.java
41 41

  
42 42
  DistortedSurface(int width, int height, int create, int numfbos, int numcolors, int type)
43 43
    {
44
    super(create,type);
44
    super(type);
45

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

  
46 48
    mNumFBOs      = numfbos;
47 49
    mNumColors    = numcolors;

Also available in: Unified diff