diff options
author | Michael Bien <[email protected]> | 2010-03-16 18:05:06 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-03-16 18:05:06 +0100 |
commit | 919d8e9f992c07ab18ddd6d192d6747e8d7aa40b (patch) | |
tree | 8a92dc8adb52758e1f09f2e87632e6f3f6ac695f /src/com/mbien/opencl/gl/CLGLBuffer.java | |
parent | 81b94f83cb76128c481d21134c3d462590db23d0 (diff) |
even more utility methods and general awesomeness.
Diffstat (limited to 'src/com/mbien/opencl/gl/CLGLBuffer.java')
-rw-r--r-- | src/com/mbien/opencl/gl/CLGLBuffer.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/mbien/opencl/gl/CLGLBuffer.java b/src/com/mbien/opencl/gl/CLGLBuffer.java index 15256f84..1856e2ff 100644 --- a/src/com/mbien/opencl/gl/CLGLBuffer.java +++ b/src/com/mbien/opencl/gl/CLGLBuffer.java @@ -19,8 +19,8 @@ public final class CLGLBuffer<B extends Buffer> extends CLBuffer<B> implements C */ public final int GLID; - private CLGLBuffer(CLContext context, B directBuffer, long id, int glObject) { - super(context, directBuffer, id); + private CLGLBuffer(CLContext context, B directBuffer, long id, int glObject, int flags) { + super(context, directBuffer, id, flags); this.GLID = glObject; } @@ -34,7 +34,7 @@ public final class CLGLBuffer<B extends Buffer> extends CLBuffer<B> implements C long id = clgli.clCreateFromGLBuffer(context.ID, flags, glObject, result, 0); - return new CLGLBuffer<B>(context, directBuffer, id, glObject); + return new CLGLBuffer<B>(context, directBuffer, id, glObject, flags); } static <B extends Buffer> void checkBuffer(B directBuffer, int flags) throws IllegalArgumentException { @@ -56,7 +56,7 @@ public final class CLGLBuffer<B extends Buffer> extends CLBuffer<B> implements C @Override public <T extends Buffer> CLGLBuffer<T> cloneWith(T directBuffer) { - return new CLGLBuffer<T>(context, directBuffer, ID, GLID); + return new CLGLBuffer<T>(context, directBuffer, ID, GLID, FLAGS); } @Override |