From 23d29aa778d2099a83b7344d418f0d0e0dbb8246 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 25 Jan 2007 23:02:07 +0000 Subject: 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 --- src/classes/com/sun/opengl/util/j2d/TextureRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3