From 3034edfa147c43cea5dc5384ff75715998016e29 Mon Sep 17 00:00:00 2001 From: Kevin Rushforth Date: Tue, 6 Mar 2007 23:53:57 +0000 Subject: Issue 417: JOGL: Mip-mapped NPOT textures rendered incorrectly git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@786 ba19aa83-45c5-6ac9-afd3-db810772062c --- src/classes/jogl/javax/media/j3d/JoglPipeline.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/classes/jogl/javax/media/j3d/JoglPipeline.java b/src/classes/jogl/javax/media/j3d/JoglPipeline.java index 8e2c842..ff22d5c 100644 --- a/src/classes/jogl/javax/media/j3d/JoglPipeline.java +++ b/src/classes/jogl/javax/media/j3d/JoglPipeline.java @@ -6949,7 +6949,11 @@ class JoglPipeline extends Pipeline { gl.glDepthFunc(GL.GL_LEQUAL); gl.glEnable(GL.GL_COLOR_MATERIAL); gl.glReadBuffer(GL.GL_FRONT); - + + // Issue 417: JOGL: Mip-mapped NPOT textures rendered incorrectly + // Java 3D images are aligned to 1 byte + gl.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, 1); + // Workaround for issue 400: Enable separate specular by default gl.glLightModeli(GL.GL_LIGHT_MODEL_COLOR_CONTROL, GL.GL_SEPARATE_SPECULAR_COLOR); } finally { -- cgit v1.2.3