cube: Fix leaking resources
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Tue, 17 Feb 2015 16:48:44 +0000 (09:48 -0700)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Tue, 24 Feb 2015 23:00:36 +0000 (16:00 -0700)
commitefc58ae808b086664476307518e234fd0ef08f86
treec832ce94a188e09663d2dbfa496b3733dbc68c6e
parent6503394699de0c8b4ae3203523cb6db172d41ba6
cube: Fix leaking resources

Demo was leaking Framebuffers and RenderPasses every time a new command
buffer was created (every frame). Now app creates only two command
buffers (one for each render target) and re-uses those command buffers
to draw the cube.
demos/cube.c