mirror of
https://github.com/processing/processing4.git
synced 2026-05-11 21:32:39 +02:00
uncommented allocate() in Texture, removed some debug printlns
This commit is contained in:
@@ -549,7 +549,6 @@ public class PGL {
|
||||
|
||||
bindFramebuffer(FRAMEBUFFER, 0);
|
||||
|
||||
System.out.println("inited FBO layer");
|
||||
initialized = true;
|
||||
}
|
||||
}
|
||||
@@ -1662,9 +1661,7 @@ public class PGL {
|
||||
boolean depthMask = getDepthWriteMask();
|
||||
depthMask(false);
|
||||
|
||||
pg.report("BEFORE USE PROGRAM");
|
||||
useProgram(texShaderProgram);
|
||||
pg.report("USE SHADER PROGRAM " + texShaderProgram);
|
||||
|
||||
enableVertexAttribArray(texVertLoc);
|
||||
enableVertexAttribArray(texTCoordLoc);
|
||||
|
||||
@@ -527,8 +527,6 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
|
||||
|
||||
public PGraphicsOpenGL() {
|
||||
System.err.println("Create PGL: " + pgPrimary + " " + pgCurrent);
|
||||
|
||||
pgl = new PGL(this);
|
||||
|
||||
if (tessellator == null) {
|
||||
@@ -664,13 +662,9 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
deletePointBuffers();
|
||||
|
||||
pgl.deleteSurface();
|
||||
|
||||
System.err.println("Disposed renderer");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
protected void setFlushMode(int mode) {
|
||||
flushMode = mode;
|
||||
}
|
||||
@@ -5224,7 +5218,6 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
// In the case of MSAA, this is needed so the back buffer is in sync
|
||||
// with the rendering.
|
||||
pgl.syncBackTexture();
|
||||
PApplet.println("FBO backed");
|
||||
} else {
|
||||
loadTextureImpl(Texture.POINT, false);
|
||||
|
||||
@@ -5250,8 +5243,6 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
endPixelsOp();
|
||||
|
||||
texture.setNative(nativePixelBuffer, 0, 0, width, height);
|
||||
|
||||
PApplet.println("not FBO backed");
|
||||
}
|
||||
} else {
|
||||
// We need to copy the contents of the multisampled buffer to the
|
||||
|
||||
@@ -207,7 +207,7 @@ public class Texture implements PConstants {
|
||||
public void init(int width, int height, Parameters params) {
|
||||
setParameters(params);
|
||||
setSize(width, height);
|
||||
//allocate();
|
||||
allocate();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user