From 58c4d60beecf5bbb27c7804ff11efd079c19eb99 Mon Sep 17 00:00:00 2001 From: Jeffrey Han Date: Sat, 4 Feb 2017 21:02:40 -0500 Subject: [PATCH] Fixed video distortion. (thanks to @fluddokt) Signed-off-by: Jeffrey Han --- src/itdelatrisu/opsu/video/Video.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/itdelatrisu/opsu/video/Video.java b/src/itdelatrisu/opsu/video/Video.java index 2dec4e86..3540da44 100644 --- a/src/itdelatrisu/opsu/video/Video.java +++ b/src/itdelatrisu/opsu/video/Video.java @@ -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; }