From 03cdffe5739ef8b032638cf4169e713c90fb36c6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 22 Oct 2012 21:28:40 +0200 Subject: FixedFuncHook/ImmModeSink: Fix *Pointer 'normalized' parameter All *Pointer methods used 'normalized:=false', but we cannot assume the fixed function code does use normalized (0f..1f) values. On the contrary, it usually uses the native format value range. Hence we have to pass normalized:=true for all fixed point data types and normalized:=false for floating point data types. --- src/jogl/classes/javax/media/opengl/GLArrayData.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/jogl/classes/javax/media/opengl/GLArrayData.java') diff --git a/src/jogl/classes/javax/media/opengl/GLArrayData.java b/src/jogl/classes/javax/media/opengl/GLArrayData.java index 7c56b53cb..5d17f6874 100644 --- a/src/jogl/classes/javax/media/opengl/GLArrayData.java +++ b/src/jogl/classes/javax/media/opengl/GLArrayData.java @@ -145,7 +145,11 @@ public interface GLArrayData { /** * True, if GL shall normalize fixed point data while converting - * them into float + * them into float. + *

+ * Default behavior (of the fixed function pipeline) is true + * for fixed point data type and false for floating point data types. + *

*/ public boolean getNormalized(); -- cgit v1.2.3