diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-01-24 18:45:56 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-01-26 22:24:06 +0100 |
| commit | 8416a86b6deceab44f4ebb446838976d53637149 (patch) | |
| tree | 37e1030c76a9beff9c189c2ddd3e5d48732f38b3 /Source/Core/VideoCommon/VertexLoaderBase.cpp | |
| parent | 66f28707e73aae0de762aac45dbfb9a79dc96697 (diff) | |
VertexLoaderBase: fix crash on invalid formats
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderBase.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderBase.cpp b/Source/Core/VideoCommon/VertexLoaderBase.cpp index c0e8e533df..b17731509d 100644 --- a/Source/Core/VideoCommon/VertexLoaderBase.cpp +++ b/Source/Core/VideoCommon/VertexLoaderBase.cpp @@ -77,22 +77,15 @@ void VertexLoaderBase::AppendToString(std::string *dest) const static const char *posMode[4] = { "Inv", - "Dir", - "I8", - "I16", + "Dir", "I8", "I16", }; - static const char *posFormats[5] = { + static const char *posFormats[8] = { "u8", "s8", "u16", "s16", "flt", + "Inv", "Inv", "Inv", }; static const char *colorFormat[8] = { - "565", - "888", - "888x", - "4444", - "6666", - "8888", - "Inv", - "Inv", + "565", "888", "888x", "4444", "6666", "8888", + "Inv", "Inv", }; dest->append(StringFromFormat("%ib skin: %i P: %i %s-%s ", |
