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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user