Merge pull request #3959 from leoetlino/d3d-bbox-fix
D3D: Fix crash on start with BBox enabled
This commit is contained in:
commit
a4f2f13c3d
|
@ -162,6 +162,7 @@ void VideoBackend::Video_Prepare()
|
||||||
PixelShaderCache::Init();
|
PixelShaderCache::Init();
|
||||||
GeometryShaderCache::Init();
|
GeometryShaderCache::Init();
|
||||||
D3D::InitUtils();
|
D3D::InitUtils();
|
||||||
|
BBox::Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoBackend::Shutdown()
|
void VideoBackend::Shutdown()
|
||||||
|
|
|
@ -181,6 +181,7 @@ void VideoBackend::Video_Prepare()
|
||||||
StaticShaderCache::Init();
|
StaticShaderCache::Init();
|
||||||
StateCache::Init(); // PSO cache is populated here, after constituent shaders are loaded.
|
StateCache::Init(); // PSO cache is populated here, after constituent shaders are loaded.
|
||||||
D3D::InitUtils();
|
D3D::InitUtils();
|
||||||
|
BBox::Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoBackend::Shutdown()
|
void VideoBackend::Shutdown()
|
||||||
|
|
Loading…
Reference in New Issue