mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
OpcodeDecoding: Convert #defines into enum constants
Gets several constants out of global scope.
This commit is contained in:
parent
22fbcc67fc
commit
d9d069e024
7 changed files with 110 additions and 97 deletions
|
@ -62,14 +62,15 @@ void SWVertexLoader::vFlush()
|
|||
switch (m_current_primitive_type)
|
||||
{
|
||||
case PRIMITIVE_POINTS:
|
||||
primitiveType = GX_DRAW_POINTS;
|
||||
primitiveType = OpcodeDecoder::GX_DRAW_POINTS;
|
||||
break;
|
||||
case PRIMITIVE_LINES:
|
||||
primitiveType = GX_DRAW_LINES;
|
||||
primitiveType = OpcodeDecoder::GX_DRAW_LINES;
|
||||
break;
|
||||
case PRIMITIVE_TRIANGLES:
|
||||
primitiveType = g_ActiveConfig.backend_info.bSupportsPrimitiveRestart ? GX_DRAW_TRIANGLE_STRIP :
|
||||
GX_DRAW_TRIANGLES;
|
||||
primitiveType = g_ActiveConfig.backend_info.bSupportsPrimitiveRestart ?
|
||||
OpcodeDecoder::GX_DRAW_TRIANGLE_STRIP :
|
||||
OpcodeDecoder::GX_DRAW_TRIANGLES;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue