From 907e4a1f9077f4ce5d2a8f98b99816f752ce30ce Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Mon, 4 Apr 2011 20:18:03 +0200 Subject: fixed bug 491 "createImage3d incorrect arguments" --- src/com/jogamp/opencl/CLContext.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/com/jogamp') diff --git a/src/com/jogamp/opencl/CLContext.java b/src/com/jogamp/opencl/CLContext.java index 81eb5f37..c8a847a2 100644 --- a/src/com/jogamp/opencl/CLContext.java +++ b/src/com/jogamp/opencl/CLContext.java @@ -402,15 +402,15 @@ public class CLContext extends CLObject implements CLResource { /** * Creates a CLImage3d with the specified format, dimension and flags. */ - public final CLImage3d createImage3d(int width, int height, CLImageFormat format, Mem... flags) { - return createImage3d(null, width, height, 0, format, flags); + public final CLImage3d createImage3d(int width, int height, int depth, CLImageFormat format, Mem... flags) { + return createImage3d(null, width, height, depth, format, flags); } /** * Creates a CLImage3d with the specified format, dimension and flags. */ - public final CLImage3d createImage3d(int width, int height, int depth, int rowPitch, CLImageFormat format, Mem... flags) { - return createImage3d(null, width, height, rowPitch, format, flags); + public final CLImage3d createImage3d(int width, int height, int depth, int rowPitch, int slicePitch, CLImageFormat format, Mem... flags) { + return createImage3d(null, width, height, depth, rowPitch, slicePitch, format, flags); } /** -- cgit v1.2.3