GPUOpen-LibrariesAndSDKs / RenderPipelineShaders

Render Pipeline Shaders SDK
MIT License
312 stars 24 forks source link

Fix Hello Triangle Breathing example not working properly #30

Open Mcgode opened 1 year ago

Mcgode commented 1 year ago

time is declared on the stack, but was accessed through a pointer after being unscoped when calling rpsRenderGraphUpdate(). It resulted in receiving an invalid value in DrawTriangleBreathingCb, breaking the demo.

This PR fixes the issue by moving the local variable declaration to the same scope as rpsRenderGraphUpdate().

FlorianHerickAMD commented 1 year ago

Thank you for reporting this. We will address this either as part of a small maintenance update or the next version.