diff options
author | Harvey Harrison <[email protected]> | 2012-02-16 11:32:59 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-05-03 18:37:30 -0700 |
commit | f1a1fba0487dca19daedf137276455007e473531 (patch) | |
tree | fff4e7777111fe2a0fa3c81aee78095893579574 | |
parent | ed498b7893fe0cf93a12241edd9340849667a52d (diff) |
j3dcore: disable support for GL_SGIS_texture_filter4
- disable the Canvas3D.FILTER4 feature flag always, causes internal fallback
to Texture.BASE_LEVEL_LINEAR
Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r-- | src/classes/jogl/javax/media/j3d/JoglPipeline.java | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/classes/jogl/javax/media/j3d/JoglPipeline.java b/src/classes/jogl/javax/media/j3d/JoglPipeline.java index 4817f3c..04bd37c 100644 --- a/src/classes/jogl/javax/media/j3d/JoglPipeline.java +++ b/src/classes/jogl/javax/media/j3d/JoglPipeline.java @@ -5945,8 +5945,9 @@ class JoglPipeline extends Pipeline { GL.GL_LINEAR_MIPMAP_LINEAR); break; case Texture.FILTER4: - gl.glTexParameteri(target, GL.GL_TEXTURE_MIN_FILTER, - GL.GL_FILTER4_SGIS); +// We should never get here as we've disabled the FILTER4 feature +// gl.glTexParameteri(target, GL.GL_TEXTURE_MIN_FILTER, +// GL.GL_FILTER4_SGIS); break; } @@ -5985,8 +5986,9 @@ class JoglPipeline extends Pipeline { GL.GL_LINEAR_DETAIL_ALPHA_SGIS); break; case Texture.FILTER4: - gl.glTexParameteri(target, GL.GL_TEXTURE_MAG_FILTER, - GL.GL_FILTER4_SGIS); +// We should never get here as we've disabled the FILTER4 feature +// gl.glTexParameteri(target, GL.GL_TEXTURE_MAG_FILTER, +// GL.GL_FILTER4_SGIS); break; } } @@ -6124,9 +6126,10 @@ class JoglPipeline extends Pipeline { float[] pts) { // checking of the availability of filter4 functionality // is already done in shared code - GL gl = context(ctx).getGL(); - gl.glTexFilterFuncSGIS(target, GL.GL_FILTER4_SGIS, - numPts, pts, 0); +// FIXME: GL_SGIS_texture_filter4 +// GL gl = context(ctx).getGL(); +// gl.glTexFilterFuncSGIS(target, GL.GL_FILTER4_SGIS, +// numPts, pts, 0); } // mapping from java enum to gl enum @@ -7542,9 +7545,10 @@ class JoglPipeline extends Pipeline { cv.textureExtendedFeatures |= Canvas3D.TEXTURE_DETAIL; } - if (gl.isExtensionAvailable("GL_SGIS_texture_filter4")) { - cv.textureExtendedFeatures |= Canvas3D.TEXTURE_FILTER4; - } +// FIXME: GL_SGIS_texture_filter4 +// if (gl.isExtensionAvailable("GL_SGIS_texture_filter4")) { +// cv.textureExtendedFeatures |= Canvas3D.TEXTURE_FILTER4; +// } if (gl.isExtensionAvailable("GL_EXT_texture_filter_anisotropic")) { cv.textureExtendedFeatures |= Canvas3D.TEXTURE_ANISOTROPIC_FILTER; |