Skip to content

Commit

Permalink
Fixed video distortion. (thanks to @fluddokt)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
  • Loading branch information
itdelatrisu committed Feb 5, 2017
1 parent 0507374 commit 58c4d60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/itdelatrisu/opsu/video/Video.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ private void update(long syncTime) {
initFrame = System.nanoTime();
if (pauseFrame != 0)
pauseFrame = initFrame;

// change pixel store alignment to prevent distortion
GL11.glPixelStorei(GL11.GL_UNPACK_ALIGNMENT, 1);
GL11.glPixelStorei(GL11.GL_PACK_ALIGNMENT, 1);

initialized = true;
}

Expand Down

0 comments on commit 58c4d60

Please # to comment.