diff options
| author | Matthew Parlane <parlane@gmail.com> | 2014-02-08 14:35:31 +1300 |
|---|---|---|
| committer | Matthew Parlane <parlane@gmail.com> | 2014-02-08 14:35:31 +1300 |
| commit | 28755439b36ac8e875d764da5db31ad693459ace (patch) | |
| tree | 32276aa7db6fbff03c6b4692dd32d95844c7b173 /Source/Core/VideoCommon/VertexLoader.cpp | |
| parent | 64e01ec763d21915e7166e625f8a3e85b46fbcbb (diff) | |
| parent | ebff7974c3373cb96516cac0aa944e48b54e1d6b (diff) | |
Merge pull request #49 from Parlane/sprintf_tidy
Some tidy up of sprintf to StringFromFormat
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp index 772bb1f1f8..d3806aeaa7 100644 --- a/Source/Core/VideoCommon/VertexLoader.cpp +++ b/Source/Core/VideoCommon/VertexLoader.cpp @@ -600,9 +600,10 @@ void VertexLoader::CompileVertexTranslator() if (pFunc == 0) { - char temp[256]; - sprintf(temp,"%i %i %i %i", m_VtxDesc.Normal, m_VtxAttr.NormalFormat, m_VtxAttr.NormalElements, m_VtxAttr.NormalIndex3); - Host_SysMessage("VertexLoader_Normal::GetFunction returned zero!"); + Host_SysMessage( + StringFromFormat("VertexLoader_Normal::GetFunction(%i %i %i %i) returned zero!", + m_VtxDesc.Normal, m_VtxAttr.NormalFormat, + m_VtxAttr.NormalElements, m_VtxAttr.NormalIndex3).c_str()); } WriteCall(pFunc); |
