summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-02-28 22:41:06 -0800
committerHarvey Harrison <[email protected]>2013-02-28 22:41:06 -0800
commit6c4a9b90cba86d3eb3b5aaf49e0d0fd9a1fab031 (patch)
tree4be73aac1472eaef008c70407e8ca28752cf2cbc /src
parent1b5701a67ea1bb26e133caec2adb33e21add3763 (diff)
j3dcore: remove some unused vars and unneeded casts
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/classes/share/javax/media/j3d/JoglPipeline.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/classes/share/javax/media/j3d/JoglPipeline.java b/src/classes/share/javax/media/j3d/JoglPipeline.java
index 10cbb8c..39094a8 100644
--- a/src/classes/share/javax/media/j3d/JoglPipeline.java
+++ b/src/classes/share/javax/media/j3d/JoglPipeline.java
@@ -3155,7 +3155,6 @@ class JoglPipeline extends Pipeline {
String attrName, int attrIndex) {
if (VERBOSE) System.err.println("JoglPipeline.bindGLSLVertexAttrName()");
- JoglContext jctx = (JoglContext) ctx;
GL2 gl = context(ctx).getGL().getGL2();
gl.glBindAttribLocation(unbox(shaderProgramId),
attrIndex + VirtualUniverse.mc.glslVertexAttrOffset,
@@ -3626,8 +3625,6 @@ class JoglPipeline extends Pipeline {
color[0] = sRed; color[1] = sGreen; color[2] = sBlue;
gl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL2.GL_SPECULAR, color, 0);
- float cr, cg, cb;
-
if (lightEnable) {
color[0] = dRed; color[1] = dGreen; color[2] = dBlue;
} else {
@@ -4840,7 +4837,6 @@ class JoglPipeline extends Pipeline {
if (VERBOSE) System.err.println("JoglPipeline.updateTextureUnitState()");
GL2 gl = context(ctx).getGL().getGL2();
- JoglContext jctx = (JoglContext) ctx;
if (index >= 0 && gl.isExtensionAvailable("GL_VERSION_1_3")) {
gl.glActiveTexture(index + GL.GL_TEXTURE0);
@@ -6237,7 +6233,7 @@ class JoglPipeline extends Pipeline {
try {
glDrawble.setRealized(false);
// New GLDrawable
- glDrawble = (GLDrawable)factory.createGLDrawable(surface);
+ glDrawble = factory.createGLDrawable(surface);
glDrawble.setRealized(true);
joglDrawable.setGLDrawable(glDrawble);
@@ -8370,7 +8366,7 @@ static boolean hasFBObjectSizeChanged(JoglDrawable jdraw, int width, int height)
// All of the Sun GraphicsDevice implementations have a method
// int getScreen();
// which we want to call reflectively if it's available.
- AccessController.doPrivileged(new PrivilegedAction() {
+ AccessController.doPrivileged(new PrivilegedAction<Object>() {
public Object run() {
try {
getScreenMethod = graphicsDevice.getClass().getDeclaredMethod("getScreen", new Class[] {});