mirror of
https://github.com/processing/processing4.git
synced 2026-02-17 12:25:39 +01:00
threading problems worked out (?)
This commit is contained in:
@@ -1367,7 +1367,7 @@ in */
|
||||
return;
|
||||
}
|
||||
|
||||
System.out.println("handleDraw() " + frameCount);
|
||||
//System.out.println("handleDraw() " + frameCount);
|
||||
|
||||
g.beginDraw();
|
||||
|
||||
@@ -1375,9 +1375,9 @@ in */
|
||||
|
||||
if (frameCount == 0) {
|
||||
try {
|
||||
println("Calling setup()");
|
||||
//println("Calling setup()");
|
||||
setup();
|
||||
println("Done with setup()");
|
||||
//println("Done with setup()");
|
||||
|
||||
} catch (RendererChangeException e) {
|
||||
// Give up, instead set the new renderer and re-attempt setup()
|
||||
@@ -1398,9 +1398,9 @@ in */
|
||||
pmouseX = dmouseX;
|
||||
pmouseY = dmouseY;
|
||||
|
||||
println("Calling draw()");
|
||||
//println("Calling draw()");
|
||||
draw();
|
||||
println("Done calling draw()");
|
||||
//println("Done calling draw()");
|
||||
|
||||
// dmouseX/Y is updated only once per frame (unlike emouseX/Y)
|
||||
dmouseX = mouseX;
|
||||
|
||||
@@ -336,7 +336,7 @@ public interface PConstants {
|
||||
static final int ENABLE_DEPTH_SORT = 7;
|
||||
static final int DISABLE_ERROR_REPORT = 8;
|
||||
static final int ENABLE_ACCURATE_TEXTURES = 9;
|
||||
static final int DISABLE_AUTO_GZIP = 10;
|
||||
//static final int DISABLE_AUTO_GZIP = 10;
|
||||
|
||||
static final int HINT_COUNT = 11;
|
||||
}
|
||||
|
||||
@@ -329,11 +329,7 @@ public class PGraphicsOpenGL extends PGraphics3D {
|
||||
|
||||
} else if (which == ENABLE_OPENGL_2X_SMOOTH) {
|
||||
if (!opengl2X) {
|
||||
//parent.remove(canvas);
|
||||
//canvas.setLocation(width, 0);
|
||||
//canvas = null;
|
||||
//releaseContext();
|
||||
//drawable = null;
|
||||
releaseContext();
|
||||
context.destroy();
|
||||
context = null;
|
||||
allocate();
|
||||
@@ -344,6 +340,7 @@ public class PGraphicsOpenGL extends PGraphics3D {
|
||||
//canvas.setLocation(width, 0);
|
||||
//parent.remove(canvas);
|
||||
//canvas = null;
|
||||
releaseContext();
|
||||
context.destroy();
|
||||
context = null;
|
||||
allocate();
|
||||
|
||||
Reference in New Issue
Block a user