Use static cast instead of reinterpret cast to make sure we cast a correct type.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user