From 6ca42ce154439b8c2f7f76ce4300ae08678f223a Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Fri, 21 Jan 2011 23:45:39 +0100 Subject: missing buffer rewind in source upload code (bug id: #458). --- test/com/jogamp/opencl/LowLevelBindingTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/com/jogamp/opencl/LowLevelBindingTest.java') diff --git a/test/com/jogamp/opencl/LowLevelBindingTest.java b/test/com/jogamp/opencl/LowLevelBindingTest.java index b531dd94..524743b2 100644 --- a/test/com/jogamp/opencl/LowLevelBindingTest.java +++ b/test/com/jogamp/opencl/LowLevelBindingTest.java @@ -279,7 +279,7 @@ public class LowLevelBindingTest { // Create the program - PointerBuffer lengths = (PointerBuffer)PointerBuffer.allocateDirect(1).put(programSource.length()); + PointerBuffer lengths = (PointerBuffer)PointerBuffer.allocateDirect(1).put(programSource.length()).rewind(); final long program = cl.clCreateProgramWithSource(context, 1, new String[] {programSource}, lengths, intBuffer); out.println("program id: "+program); checkError("on clCreateProgramWithSource", intBuffer.get(0)); -- cgit v1.2.3