Would this be the correct jdk20 change? //textureBufferIds = MemorySegment.allocateNative(1 * 4 * 3, SegmentScope.openImplicit()); textureBufferIds = MemorySegment.allocateNative(1 * 4 * 3, SegmentScope.auto());