diff options
author | Michael Bien <[email protected]> | 2011-05-28 13:51:04 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-05-28 13:51:04 +0200 |
commit | c06bdd44da347a55d69cc764ecbe698e80db99be (patch) | |
tree | 06d3fca6f4969718a77b5aa406984c1d9d2151f1 /src/com/jogamp/opencl/gl/CLGLTexture2d.java | |
parent | 098144aa185f396933c52af6c59201add4978b21 (diff) |
CLContext uses now CLContextBinding interface.
Diffstat (limited to 'src/com/jogamp/opencl/gl/CLGLTexture2d.java')
-rw-r--r-- | src/com/jogamp/opencl/gl/CLGLTexture2d.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/gl/CLGLTexture2d.java b/src/com/jogamp/opencl/gl/CLGLTexture2d.java index 484d00d2..7cbd95d5 100644 --- a/src/com/jogamp/opencl/gl/CLGLTexture2d.java +++ b/src/com/jogamp/opencl/gl/CLGLTexture2d.java @@ -70,8 +70,8 @@ public class CLGLTexture2d<B extends Buffer> extends CLGLImage2d<B> implements C CLImageFormat format = createUninitializedImageFormat(); accessor.getInfo(CL_IMAGE_FORMAT, CLImageFormatImpl.size(), format.getFormatImpl().getBuffer(), null); - int width = 640; //(int)accessor.getLong(CL_IMAGE_WIDTH); - int height = 480; //(int)accessor.getLong(CL_IMAGE_HEIGHT); + int width = (int)accessor.getLong(CL_IMAGE_WIDTH); + int height = (int)accessor.getLong(CL_IMAGE_HEIGHT); return new CLGLTexture2d<B>(context, directBuffer, format, accessor, target, mipLevel, width, height, id, texture, flags); |