// ask for the current state record
final RenderContext context = ContextManager.getCurrentContext();
final TextureStateRecord record = (TextureStateRecord) context.getStateRecord(StateType.Texture);
final IntBuffer idBuffer = BufferUtils.createIntBuffer(ids.size());
idBuffer.clear();
for (final Integer i : ids) {
if (i != null) {
idBuffer.put(i);
record.removeTextureRecord(i);
}