PGraphics and opengl make an out of memory error.
in
Core Library Questions
•
2 years ago
- import processing.opengl.*;
- PGraphics pg;
- void setup() {
- size(800,800,OPENGL);
- pg = createGraphics(256, 256,P2D);
- }
- void draw() {
- pg.loadPixels();
- pg.updatePixels();
- image(pg,0,0);
- }
Here is a very simple code for just testing, and it seems to be no problem in my view,
But this code makes an out of memory error.
My memory setting is 1600mb and this is maximum value in my system.
Why does this happens? Is it opengl error? Should I use another library for this?
1