Skip to content

Commit 28165ae

Browse files
committed
port latest gl fixes from java mode
1 parent d307a95 commit 28165ae

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

core/src/processing/opengl/PGraphicsOpenGL.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -687,15 +687,14 @@ public void requestDraw() {
687687
}
688688

689689

690-
/*
690+
/*
691691
@Override
692692
// Java only
693693
public PSurface createSurface() { // ignore
694694
return surface = new PSurfaceJOGL(this);
695695
}
696696
*/
697697

698-
699698
public boolean saveImpl(String filename) {
700699
return super.save(filename); // ASYNC save frame using PBOs not yet available on Android
701700

@@ -834,7 +833,7 @@ static void drainRefQueueBounded() {
834833
if (res == null) {
835834
break;
836835
}
837-
System.out.println("Disposing texture resource " + iterations + " " + res.hashCode());
836+
// System.out.println("Disposing texture resource " + iterations + " " + res.hashCode());
838837
res.dispose();
839838
++iterations;
840839
}
@@ -1080,7 +1079,7 @@ static void drainRefQueueBounded() {
10801079
if (res == null) {
10811080
break;
10821081
}
1083-
System.out.println("Disposing framebuffer resource " + iterations + " " + res.hashCode());
1082+
// System.out.println("Disposing framebuffer resource " + iterations + " " + res.hashCode());
10841083
res.dispose();
10851084
++iterations;
10861085
}
@@ -5930,7 +5929,7 @@ protected void loadTextureImpl(int sampling, boolean mipmap) {
59305929
protected void createPTexture() {
59315930
updatePixelSize();
59325931
if (texture != null) {
5933-
texture = new Texture(this, pixelWidth, pixelHeight, texture.getParameters());
5932+
ptexture = new Texture(this, pixelWidth, pixelHeight, texture.getParameters());
59345933
ptexture.invertedY(true);
59355934
ptexture.colorBuffer(true);
59365935
}

0 commit comments

Comments
 (0)