TheCherno / RayTracing

YouTube ray tracing series
MIT License
374 stars 76 forks source link

Render() throws an error (image_state was nullptr) because Render() renders the image before the data is available #1

Closed dayvidvp closed 2 years ago

dayvidvp commented 2 years ago

Easy fix with: if(m_Image) Render();

TheCherno commented 2 years ago

This issue was related to a resource freeing issue which has been fixed in Walnut (https://github.com/TheCherno/Walnut/commit/9325ca5af9c3194b127d2fb6c263302c22910ad1)