@@ -258,7 +258,7 @@ void Graphics::Destructor_D3D11()
window_ = nullptr;
}
- delete impl_;
+ delete static_cast<GraphicsImpl_D3D11*>(impl_);
impl_ = nullptr;
context_->ReleaseSDL();
@@ -290,7 +290,7 @@ void Graphics::Destructor_D3D9()
+ delete static_cast<GraphicsImpl_D3D9*>(impl_);
@@ -317,7 +317,7 @@ void Graphics::Destructor_OGL()
{
Close_OGL();
+ delete static_cast<GraphicsImpl_OGL*>(impl_);