diff options
author | Kenneth Russel <[email protected]> | 2007-01-25 23:02:07 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2007-01-25 23:02:07 +0000 |
commit | 23d29aa778d2099a83b7344d418f0d0e0dbb8246 (patch) | |
tree | ef6175623118e80ca9c60f1ccacd596588fb20ab | |
parent | 5b12d2493af05305c7b4136d529ca633feb878dc (diff) |
Added GL_TEXTURE_BIT and GL_COLOR_BUFFER_BIT to set of attributes
pushed / popped by TextureRenderer on suggestion of Tom Gaskins and
Chris Campbell
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1104 232f8b59-042b-4e1e-8c03-345bb8c30851
-rwxr-xr-x | src/classes/com/sun/opengl/util/j2d/TextureRenderer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/util/j2d/TextureRenderer.java b/src/classes/com/sun/opengl/util/j2d/TextureRenderer.java index 3670d3c51..77ad92184 100755 --- a/src/classes/com/sun/opengl/util/j2d/TextureRenderer.java +++ b/src/classes/com/sun/opengl/util/j2d/TextureRenderer.java @@ -427,7 +427,8 @@ public class TextureRenderer { private void beginRendering(boolean ortho, int width, int height) { GL gl = GLU.getCurrentGL(); int attribBits = - GL.GL_ENABLE_BIT | (ortho ? (GL.GL_DEPTH_BUFFER_BIT | GL.GL_TRANSFORM_BIT) : 0); + GL.GL_ENABLE_BIT | GL.GL_TEXTURE_BIT | GL.GL_COLOR_BUFFER_BIT | + (ortho ? (GL.GL_DEPTH_BUFFER_BIT | GL.GL_TRANSFORM_BIT) : 0); gl.glPushAttrib(attribBits); gl.glDisable(GL.GL_LIGHTING); if (ortho) { |