From 0b56df9939bcd2e0e1bd193f597206c60fe56c51 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 5 Jan 2012 20:13:14 +0100 Subject: Fix bug 549 - Incorrect calculation of count value in GLUniformData due to ignored buffer position. This was disclosed by testing agains the Intel HD 3000 GPU, resulting in an INVALID OPERATION GL error (correct). Other driver ignored this mismatch .. --- src/jogl/classes/javax/media/opengl/GLUniformData.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/jogl/classes/javax/media/opengl/GLUniformData.java b/src/jogl/classes/javax/media/opengl/GLUniformData.java index 5c9388be2..475ff4546 100644 --- a/src/jogl/classes/javax/media/opengl/GLUniformData.java +++ b/src/jogl/classes/javax/media/opengl/GLUniformData.java @@ -107,10 +107,10 @@ public class GLUniformData { if(data instanceof Buffer) { final int sz = rows*columns; final Buffer buffer = (Buffer)data; - if(buffer.limit()