Use static cast instead of reinterpret cast to make sure we cast a correct type.

This commit is contained in:
2025-02-02 15:19:33 -05:00
parent 7d0b8be65c
commit 004698b135

View File

@@ -253,7 +253,7 @@ namespace Juliet
void DestroyGraphicsDevice(NonNullPtr<GraphicsDevice> device)
{
auto* renderer = reinterpret_cast<D3D12Renderer*>(device->Renderer);
auto* renderer = static_cast<D3D12Renderer*>(device->Renderer);
DestroyRenderer_Internal(renderer);
Free(device.Get());
}