I'm trying to run TwoRotatingTrianglesDemo and almostly every time it is crashes on 675 line on _vkBindImageMemory_ call.
Thanks for reporting! This was indeed a bug in the demo.
Should be fixed by https://github.com/LWJGL/lwjgl3-demos/commit/ae5added4bf731b67f74ed629d7b01d39d58423e.
Though this issue should've been posted to the lwjgl3-demos repository. Probably, @Spasi can move it there.
Thank you! :)
I just noticed that the style of memory allocations done in these demos is now rather discouraged. Instead of manually allocating and freeing the NIO buffers, better use the MemoryStack with the try-with-resources statement.
See the HelloWorld demo in the lwjgl3 repository.
Most helpful comment
Thanks for reporting! This was indeed a bug in the demo.
Should be fixed by https://github.com/LWJGL/lwjgl3-demos/commit/ae5added4bf731b67f74ed629d7b01d39d58423e.
Though this issue should've been posted to the lwjgl3-demos repository. Probably, @Spasi can move it there.