diff --git a/examples/32-particles/particles.cpp b/examples/32-particles/particles.cpp index 514da7826..7cf5b197c 100644 --- a/examples/32-particles/particles.cpp +++ b/examples/32-particles/particles.cpp @@ -207,7 +207,7 @@ struct Emitter void gizmo(const float* _view, const float* _proj) { float mtx[16]; - float scale[3]; + float scale[3] = { 1.0f, 1.0f, 1.0f }; ImGuizmo::RecomposeMatrixFromComponents(m_uniforms.m_position, m_uniforms.m_angle, scale, mtx); diff --git a/examples/common/entry/entry_windows.cpp b/examples/common/entry/entry_windows.cpp index 7ea34713b..845c039b4 100644 --- a/examples/common/entry/entry_windows.cpp +++ b/examples/common/entry/entry_windows.cpp @@ -904,6 +904,7 @@ namespace entry HDC hdc = GetDC(_hwnd); SelectObject(hdc, brush); FillRect(hdc, &rect, brush); + ReleaseDC(_hwnd, hdc); } void adjust(HWND _hwnd, uint32_t _width, uint32_t _height, bool _windowFrame)