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/CLGLImage2d.java | |
parent | 81b94f83cb76128c481d21134c3d462590db23d0 (diff) |
even more utility methods and general awesomeness.
Diffstat (limited to 'src/com/mbien/opencl/gl/CLGLImage2d.java')
-rw-r--r-- | src/com/mbien/opencl/gl/CLGLImage2d.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/mbien/opencl/gl/CLGLImage2d.java b/src/com/mbien/opencl/gl/CLGLImage2d.java index 46affc2e..0561e757 100644 --- a/src/com/mbien/opencl/gl/CLGLImage2d.java +++ b/src/com/mbien/opencl/gl/CLGLImage2d.java @@ -21,8 +21,8 @@ public class CLGLImage2d<B extends Buffer> extends CLImage2d<B> implements CLGLO */ public final int GLID; - protected CLGLImage2d(CLContext context, B directBuffer, CLImageFormat format, CLImageInfoAccessor accessor, int width, int height, long id, int glid) { - super(context, directBuffer, format, accessor, width, height, id); + protected CLGLImage2d(CLContext context, B directBuffer, CLImageFormat format, CLImageInfoAccessor accessor, int width, int height, long id, int glid, int flags) { + super(context, directBuffer, format, accessor, width, height, id, flags); this.GLID = glid; } @@ -36,10 +36,10 @@ public class CLGLImage2d<B extends Buffer> extends CLImage2d<B> implements CLGLO long id = clgli.clCreateFromGLRenderbuffer(context.ID, flags, glObject, result, 0); - return createImage(context, id, directBuffer, glObject); + return createImage(context, id, directBuffer, glObject, flags); } - static <B extends Buffer> CLGLImage2d<B> createImage(CLContext context, long id, B directBuffer, int glObject) { + static <B extends Buffer> CLGLImage2d<B> createImage(CLContext context, long id, B directBuffer, int glObject, int flags) { CLImageInfoAccessor accessor = new CLImageInfoAccessor(getCL(context), id); CLImageFormat format = createUninitializedImageFormat(); @@ -48,7 +48,7 @@ public class CLGLImage2d<B extends Buffer> extends CLImage2d<B> implements CLGLO int width = (int)accessor.getLong(CL_IMAGE_WIDTH); int height = (int)accessor.getLong(CL_IMAGE_HEIGHT); - return new CLGLImage2d<B>(context, directBuffer, format, accessor, width, height, id, glObject); + return new CLGLImage2d<B>(context, directBuffer, format, accessor, width, height, id, glObject, flags); } @Override |