diff options
author | Kevin Rushforth <[email protected]> | 2007-03-06 23:53:57 +0000 |
---|---|---|
committer | Kevin Rushforth <[email protected]> | 2007-03-06 23:53:57 +0000 |
commit | 3034edfa147c43cea5dc5384ff75715998016e29 (patch) | |
tree | 37aacd79a86046990b646846d1ad70c6de023bd7 | |
parent | db3cc8f8ece5a7231c069450d1985e132dfda7e8 (diff) |
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
-rw-r--r-- | src/classes/jogl/javax/media/j3d/JoglPipeline.java | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |