diff --git a/examples/21-deferred/deferred.cpp b/examples/21-deferred/deferred.cpp index cf4a70aa0..e235db308 100644 --- a/examples/21-deferred/deferred.cpp +++ b/examples/21-deferred/deferred.cpp @@ -418,6 +418,7 @@ public: bgfx::destroy(s_depth); bgfx::destroy(s_light); + bgfx::destroy(u_layer); bgfx::destroy(u_lightPosRadius); bgfx::destroy(u_lightRgbInnerR); bgfx::destroy(u_mtx);