I have some code that draws stuff in a PGraphics.
            
            
             When i do:
            
            - println(preProcessed.pixels == null);
             It always prints true. And when i try to acces the pixels i get a nullpointerException...
            
            
             But displaying the pgraphic goes without a problem.
            
            
             (processing 2.0.1).
            
            
             I tried to isolate the problem and did found another strange bug.
            
            
             When i use updatePixels things shift down:
            
            
             do more people have this?
            
            - void setup() {
- size(400, 400, OPENGL);
- PImage img = loadImage("blob_testImage.png");
- PGraphics pg = createGraphics(200, 200, P2D);
- println(pg.pixels == null);
- pg.beginDraw();
- pg.ellipse(100, 100, 100, 100);
- pg.image(img.get(0, 0, 100, 100), 0, 0);
- pg.endDraw();
- //pg.updatePixels();
- println(pg.pixels == null);
- image(pg, 0, 0);
- println(pg.pixels[100]);
- }
 
              
              1  
            
 
            
 
 
           
 
            