OpcodeDecoding: Convert #defines into enum constants
Gets several constants out of global scope.
This commit is contained in:
1 parent
22fbcc67fc
commit
d9d069e024
7 files changed
+110
-97
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user