Fixed getInfoBinaries bug when multiple devices exist.
This commit is contained in:
parent
274cd1c3c1
commit
e3974d5b74
|
@ -547,7 +547,7 @@ final class InfoUtilFactory {
|
|||
|
||||
target = new ByteBuffer[sizes.remaining()];
|
||||
for ( int i = 0; i < sizes.remaining(); i++ )
|
||||
target[i] = BufferUtils.createByteBuffer((int)sizes.get(0));
|
||||
target[i] = BufferUtils.createByteBuffer((int)sizes.get(i));
|
||||
} else if ( LWJGLUtil.DEBUG ) {
|
||||
final PointerBuffer sizes = getSizesBuffer(program, CL_PROGRAM_BINARY_SIZES);
|
||||
|
||||
|
|
Loading…
Reference in New Issue