aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorphil <[email protected]>2016-11-13 18:27:32 +1300
committerphil <[email protected]>2016-11-13 18:27:32 +1300
commitfaedd8431ccd3461b73300ef0a925a2f0f3ac8cf (patch)
tree0d38936a3b8679aab69a4d246a5ea3ededad1247 /src/main
parent59f4133064790f9c74ae6c5c8710e64d5fd2e47d (diff)
Overly zealous exception throwing in image handling
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java b/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java
index 250433a..e614784 100644
--- a/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java
+++ b/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java
@@ -5928,11 +5928,7 @@ class Jogl2es2Pipeline extends Jogl2es2DEPPipeline
}
else if ((dataType == ImageComponentRetained.IMAGE_DATA_TYPE_INT_ARRAY)
|| (dataType == ImageComponentRetained.IMAGE_DATA_TYPE_INT_BUFFER))
-
{
-
- // FIXME: I suspect I will only support byte buffer images so perhaps the INT type can be deprecated?
- System.out.println("IMAGE_DATA_TYPE_INT_ in use!");
int type = GL2.GL_UNSIGNED_INT_8_8_8_8;
boolean forceAlphaToOne = false;
switch (imageFormat)
@@ -5964,7 +5960,8 @@ class Jogl2es2Pipeline extends Jogl2es2DEPPipeline
if (forceAlphaToOne)
{
- new Throwable("forceAlphaToOne").printStackTrace();
+ // this is probably fine
+ //new Throwable("forceAlphaToOne").printStackTrace();
}
if (dataType == ImageComponentRetained.IMAGE_DATA_TYPE_INT_ARRAY)
@@ -5996,7 +5993,8 @@ class Jogl2es2Pipeline extends Jogl2es2DEPPipeline
if (imgXOffset > 0 || (width < tilew))
{
- new Throwable("forceAlphaToOne").printStackTrace();
+ // PJ not sure what should be happening here
+ //new Throwable("forceAlphaToOne").printStackTrace();
}
int internalFormat = 0;
@@ -6137,7 +6135,8 @@ class Jogl2es2Pipeline extends Jogl2es2DEPPipeline
if (forceAlphaToOne)
{
- new Throwable("forceAlphaToOne").printStackTrace();
+ //Probably fine
+ //new Throwable("forceAlphaToOne").printStackTrace();
}
IntBuffer buf = null;