diff options
author | Chien Yang <[email protected]> | 2007-03-06 04:59:57 +0000 |
---|---|---|
committer | Chien Yang <[email protected]> | 2007-03-06 04:59:57 +0000 |
commit | ce4454ea2fba291eedd5f1623c48faaec5d34e1a (patch) | |
tree | a16e4ecef5731e68fcfd57b577a56815c0aaa590 /src/native/ogl/Canvas3D.c | |
parent | f558afb8ef2797ff0cfe3e9918ffcee29892d6d1 (diff) |
1) Fixed Issue 414 : D3D: NPOT textures not properly disabled on card that lacks support
2) Redo NPOT support by pushing all control logic to Java side.
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@784 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/native/ogl/Canvas3D.c')
-rw-r--r-- | src/native/ogl/Canvas3D.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/native/ogl/Canvas3D.c b/src/native/ogl/Canvas3D.c index 9c17ce4..00b281e 100644 --- a/src/native/ogl/Canvas3D.c +++ b/src/native/ogl/Canvas3D.c @@ -379,7 +379,6 @@ checkTextureExtensions( if (isExtensionSupported(tmpExtensionStr, "GL_ARB_texture_non_power_of_two") && !getJavaBoolEnv(env, "enforcePowerOfTwo")) { - ctxInfo->textureNonPowerOfTwoAvailable = JNI_TRUE; ctxInfo->textureExtMask |= javax_media_j3d_Canvas3D_TEXTURE_NON_POWER_OF_TWO; } @@ -652,7 +651,6 @@ getPropertiesFromCurrentContext( /* look for OpenGL 2.0 features */ if (ctxInfo->gl20) { if (!getJavaBoolEnv(env, "enforcePowerOfTwo")) { - ctxInfo->textureNonPowerOfTwoAvailable = JNI_TRUE; ctxInfo->textureExtMask |= javax_media_j3d_Canvas3D_TEXTURE_NON_POWER_OF_TWO; } @@ -2662,7 +2660,6 @@ initializeCtxInfo(JNIEnv *env , GraphicsContextPropertiesInfo* ctxInfo) ctxInfo->textureColorTableSize = 0; ctxInfo->textureLodAvailable = JNI_FALSE; ctxInfo->textureLodBiasAvailable = JNI_FALSE; - ctxInfo->textureNonPowerOfTwoAvailable = JNI_FALSE; /* extension mask */ ctxInfo->extMask = 0; |