Fix sky rendering artifact

master
krzys-h 2017-05-18 19:03:19 +02:00
parent f6cc629054
commit 6bebbb3f70
2 changed files with 3 additions and 3 deletions
src/graphics/engine

View File

@ -234,8 +234,6 @@ void CCloud::Create(const std::string& fileName,
m_lines.clear(); m_lines.clear();
for (int y = 0; y < m_brickCount; y++) for (int y = 0; y < m_brickCount; y++)
CreateLine(0, y, m_brickCount); CreateLine(0, y, m_brickCount);
return;
} }
void CCloud::Flush() void CCloud::Flush()

View File

@ -3266,7 +3266,9 @@ void CEngine::Draw3DScene()
m_device->SetTransform(TRANSFORM_PROJECTION, m_matProj); m_device->SetTransform(TRANSFORM_PROJECTION, m_matProj);
m_device->SetTransform(TRANSFORM_VIEW, m_matView); m_device->SetTransform(TRANSFORM_VIEW, m_matView);
m_water->DrawBack(); // draws water background // TODO: This causes a rendering artifact and I can't see anything that breaks if you just comment it out
// So I'll just leave it like that for now ~krzys_h
//m_water->DrawBack(); // draws water background
CProfiler::StartPerformanceCounter(PCNT_RENDER_TERRAIN); CProfiler::StartPerformanceCounter(PCNT_RENDER_TERRAIN);