Do SetDefaultRenderStates in BeginFrame, instead of on init,

so we don't depend on state being preserved long-term, and
so every renderer doesn't have to do this.
This commit is contained in:
Glenn Maynard
2006-07-25 20:10:56 +00:00
parent 90d4dc17d5
commit 9c73aed254
4 changed files with 19 additions and 10 deletions
+12
View File
@@ -121,11 +121,23 @@ RString RageDisplay::GetStats() const
return s;
}
bool RageDisplay::BeginFrame()
{
this->SetDefaultRenderStates();
return true;
}
void RageDisplay::EndFrame()
{
ProcessStatsOnFlip();
}
void RageDisplay::BeginConcurrentRendering()
{
this->SetDefaultRenderStates();
}
void RageDisplay::StatsAddVerts( int iNumVertsRendered ) { g_iVertsRenderedSinceLastCheck += iNumVertsRendered; }
/* Draw a line as a quad. GL_LINES with SmoothLines off can draw line