aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/share
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2007-03-07 00:09:16 +0000
committerChien Yang <[email protected]>2007-03-07 00:09:16 +0000
commit462b4a4200cf6aeb6ac4f7133dd7f8ae1abae319 (patch)
tree78ef41b65107114a143dc100b1790c9e0b2d446b /src/classes/share
parent3034edfa147c43cea5dc5384ff75715998016e29 (diff)
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
Diffstat (limited to 'src/classes/share')
-rw-r--r--src/classes/share/javax/media/j3d/TextureRetained.java3
1 files changed, 1 insertions, 2 deletions
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;