@@ -80,6 +80,7 @@ public Capture(final PApplet applet, int width, int height) {
80
80
glView = (GLSurfaceView ) applet .getSurfaceView ();
81
81
pg = (PGraphicsOpenGL )applet .g ;
82
82
customTexture = new Texture (pg , width , height );
83
+ customTexture .invertedY (true );
83
84
log ("cusotm texture address = " + customTexture .glName );
84
85
pg .setCache (this , customTexture );
85
86
applet .runOnUiThread (new Runnable () {
@@ -329,10 +330,11 @@ public void prepareFrameBuffers() {
329
330
330
331
GLES20 .glBindTexture (GLES20 .GL_TEXTURE_2D , customTexture .glName );
331
332
GlUtil .checkGlError ("glBindTexture" );
333
+ /*
332
334
GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);
333
335
GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);
334
336
GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_CLAMP_TO_EDGE);
335
- GLES20 .glTexParameterf (GLES20 .GL_TEXTURE_2D , GLES20 .GL_TEXTURE_WRAP_T , GLES20 .GL_CLAMP_TO_EDGE );
337
+ GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_CLAMP_TO_EDGE);*/
336
338
GLES20 .glTexImage2D (GLES20 .GL_TEXTURE_2D , 0 , GLES20 .GL_RGBA , width , height , 0 , GLES20 .GL_RGBA , GLES20 .GL_UNSIGNED_BYTE , null );
337
339
GlUtil .checkGlError ("glTexImage2D" );
338
340
0 commit comments