threading problems worked out (?)

This commit is contained in:
benfry
2008-08-14 02:01:32 +00:00
parent 7dd8a9ceb0
commit 26ffcbc6ce
3 changed files with 8 additions and 11 deletions

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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();