summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-04-04 20:18:03 +0200
committerMichael Bien <[email protected]>2011-04-04 20:18:03 +0200
commit907e4a1f9077f4ce5d2a8f98b99816f752ce30ce (patch)
tree322e84d8a0e38c17b8c6c148671a71ffa2338af4 /src/com/jogamp
parent6612391c7ad8309ebd315cdf2a91a71f11793a61 (diff)
fixed bug 491 "createImage3d incorrect arguments"
Diffstat (limited to 'src/com/jogamp')
-rw-r--r--src/com/jogamp/opencl/CLContext.java8
1 files changed, 4 insertions, 4 deletions
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);
}
/**