From 462b4a4200cf6aeb6ac4f7133dd7f8ae1abae319 Mon Sep 17 00:00:00 2001 From: Chien Yang Date: Wed, 7 Mar 2007 00:09:16 +0000 Subject: 1) Fix Issue 455 : Need to disable NPOT textures for older cards that claim to support it. 2) Clean up NPOT texture support. git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@787 ba19aa83-45c5-6ac9-afd3-db810772062c --- src/classes/share/javax/media/j3d/TextureRetained.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/classes/share') diff --git a/src/classes/share/javax/media/j3d/TextureRetained.java b/src/classes/share/javax/media/j3d/TextureRetained.java index 7fa241e..62afe95 100644 --- a/src/classes/share/javax/media/j3d/TextureRetained.java +++ b/src/classes/share/javax/media/j3d/TextureRetained.java @@ -1103,8 +1103,7 @@ abstract class TextureRetained extends NodeComponentRetained { private boolean isEnabled(Canvas3D cv) { if(widthOrHeightIsNPOT && - (((cv.textureExtendedFeatures & Canvas3D.TEXTURE_NON_POWER_OF_TWO ) == 0) || - VirtualUniverse.mc.enforcePowerOfTwo)) { + ((cv.textureExtendedFeatures & Canvas3D.TEXTURE_NON_POWER_OF_TWO ) == 0)) { return false; } return enable; -- cgit v1.2.3