mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Formatting cleanup for VideoCommon.
Block braces on new lines. Also killed off trailing whitespace and dangling elses. Spaced some things out to make them more readable (only in places where it looked like a bit of a clusterfuck).
This commit is contained in:
parent
c118c71eac
commit
8da425b008
35 changed files with 559 additions and 258 deletions
|
@ -35,7 +35,8 @@ VertexManager::VertexManager()
|
|||
}
|
||||
|
||||
VertexManager::~VertexManager()
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
void VertexManager::ResetBuffer()
|
||||
{
|
||||
|
@ -75,7 +76,8 @@ bool VertexManager::IsFlushed() const
|
|||
u32 VertexManager::GetRemainingIndices(int primitive)
|
||||
{
|
||||
|
||||
if(g_Config.backend_info.bSupportsPrimitiveRestart) {
|
||||
if(g_Config.backend_info.bSupportsPrimitiveRestart)
|
||||
{
|
||||
switch (primitive)
|
||||
{
|
||||
case GX_DRAW_QUADS:
|
||||
|
@ -98,7 +100,9 @@ u32 VertexManager::GetRemainingIndices(int primitive)
|
|||
default:
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (primitive)
|
||||
{
|
||||
case GX_DRAW_QUADS:
|
||||
|
@ -216,7 +220,9 @@ void VertexManager::Flush()
|
|||
PixelShaderManager::SetTexDims(i, tentry->nativeW, tentry->nativeH, 0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
ERROR_LOG(VIDEO, "Error loading texture");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue