Moves depth and stencil tests to PipelineState and DeviceCommandContext.

Differential Revision: https://code.wildfiregames.com/D4471
This was SVN commit r26286.
This commit is contained in:
vladislavbelov
2022-02-01 16:38:55 +00:00
parent 709e8292b0
commit a1f98b016b
32 changed files with 309 additions and 104 deletions
-2
View File
@@ -816,8 +816,6 @@ void WaterManager::RenderWaves(
glClearColor(0.0f,0.0f, 0.0f,0.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glEnable(GL_DEPTH_TEST);
CShaderTechniquePtr tech = g_Renderer.GetShaderManager().LoadEffect(str_water_waves);
tech->BeginPass();
deviceCommandContext->SetGraphicsPipelineState(