Skip to content

Commit 2cc61c7

Browse files
committed
punch through alpha not working at all due to double translation from
Java3D to OpenGL ids, now fixed
1 parent af8c19e commit 2cc61c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3379,7 +3379,7 @@ else if (OUTPUT_PER_FRAME_STATS)
33793379
if (!MINIMISE_NATIVE_CALLS_FFP || (shaderProgramId != ctx.prevShaderProgram
33803380
|| ctx.gl_state.alphaTestFunction != ctx.renderingData.alphaTestFunction))
33813381
{
3382-
gl.glUniform1i(locs.alphaTestFunction, getFunctionValue(ctx.renderingData.alphaTestFunction));
3382+
gl.glUniform1i(locs.alphaTestFunction, ctx.renderingData.alphaTestFunction);
33833383
if (MINIMISE_NATIVE_CALLS_FFP)
33843384
ctx.gl_state.alphaTestFunction = ctx.renderingData.alphaTestFunction;
33853385
}

0 commit comments

Comments
 (0)