File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/in/omerjerk/processing/video/android Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 8
8
import android .graphics .SurfaceTexture ;
9
9
import android .hardware .Camera ;
10
10
import android .hardware .Camera .Size ;
11
- import android .opengl .GLES11Ext ;
12
11
import android .opengl .GLES20 ;
13
- import android .opengl .GLES30 ;
14
12
import android .opengl .GLSurfaceView ;
15
13
import android .os .Handler ;
16
14
import android .os .Message ;
17
15
import android .util .Log ;
18
16
import android .view .SurfaceHolder ;
19
17
import processing .core .PConstants ;
20
18
import processing .core .PApplet ;
21
- import processing .core .PGraphics ;
22
19
import processing .core .PImage ;
23
20
import processing .opengl .PGL ;
24
21
import processing .opengl .PGraphicsOpenGL ;
@@ -372,7 +369,8 @@ public void prepareFrameBuffers() {
372
369
public void getImage (boolean loadPixels ) {
373
370
374
371
if (destpg == null || destpg .width != width || destpg .height != height ) {
375
- destpg = (PGraphicsOpenGL ) parent .createGraphics (width , height , PConstants .P2D );
372
+ destpg = (PGraphicsOpenGL ) parent .createGraphics (width , height , PConstants .P2D );
373
+ destpg .pgl .setGlThread (Thread .currentThread ());
376
374
}
377
375
378
376
destpg .beginDraw ();
You can’t perform that action at this time.
0 commit comments