aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2007-01-25 23:02:07 +0000
committerKenneth Russel <[email protected]>2007-01-25 23:02:07 +0000
commit23d29aa778d2099a83b7344d418f0d0e0dbb8246 (patch)
treeef6175623118e80ca9c60f1ccacd596588fb20ab /src
parent5b12d2493af05305c7b4136d529ca633feb878dc (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
Diffstat (limited to 'src')
-rwxr-xr-xsrc/classes/com/sun/opengl/util/j2d/TextureRenderer.java3
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) {