Skip to content

Commit 5693824

Browse files
Merge pull request ClearVolume#5 from ClearVolume/develop
Fix video recording in ClearGL
2 parents 8456fcc + e8f181b commit 5693824

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/java/cleargl/util/recorder/GLVideoRecorder.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ private void writeDrawableToFile( GLAutoDrawable pDrawable,
328328

329329
final GL lGL = pDrawable.getGL();
330330

331-
lGL.getGL3().glReadBuffer(GL.GL_BACK);
332331
lGL.glPixelStorei(GL.GL_PACK_ALIGNMENT, 1);
333332
lGL.glReadPixels(0, // GLint x
334333
0, // GLint y
@@ -361,9 +360,6 @@ public void run()
361360

362361
}
363362
});
364-
365-
mImageCounter++;
366-
// System.out.println("saved image!");
367363
}
368364
}
369365

@@ -460,6 +456,7 @@ private void writeBufferToFile( File pOutputFile,
460456
pWidth);
461457

462458
ImageIO.write(lBufferedImage, "PNG", pOutputFile);
459+
mImageCounter++;
463460
}
464461
catch (final Throwable e)
465462
{

0 commit comments

Comments
 (0)