--- ../../Applications/jocl/src/com/jogamp/opencl/gl/CLGLTexture2d.java (revision 3630d06bc4858ff82ea8cbe7b699fda211c0ec47) +++ ../../Applications/jocl/src/com/jogamp/opencl/gl/CLGLTexture2d.java (revision ) @@ -63,7 +63,7 @@ CLGL clgli = (CLGL)cl; long id = clgli.clCreateFromGLTexture2D(context.ID, flags, target, mipLevel, texture, result, 0); - checkForError((int)id, "can not share memory with texture #"+texture+"."); + checkForError(result[0], "can not share memory with texture #"+texture+"."); CLImageInfoAccessor accessor = new CLImageInfoAccessor(cl, id);