mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-13 05:00:55 +00:00
Reporting: Improve no pos verts message.
This commit is contained in:
parent
f9ce1587cb
commit
db300da1d7
@ -1125,8 +1125,9 @@ void VertexDecoder::SetVertexType(u32 fmt, const VertexDecoderOptions &options,
|
||||
decOff += DecFmtSize(decFmt.nrmfmt);
|
||||
}
|
||||
|
||||
bool reportNoPos = false;
|
||||
if (!pos) {
|
||||
ERROR_LOG_REPORT(G3D, "Vertices without position found");
|
||||
reportNoPos = true;
|
||||
pos = 1;
|
||||
}
|
||||
if (pos) { // there's always a position
|
||||
@ -1161,6 +1162,12 @@ void VertexDecoder::SetVertexType(u32 fmt, const VertexDecoderOptions &options,
|
||||
size *= morphcount;
|
||||
DEBUG_LOG(G3D, "SVT : size = %i, aligned to biggest %i", size, biggest);
|
||||
|
||||
if (reportNoPos) {
|
||||
char temp[256]{};
|
||||
ToString(temp);
|
||||
ERROR_LOG_REPORT(G3D, "Vertices without position found: (%08x) %s", fmt_, temp);
|
||||
}
|
||||
|
||||
// Attempt to JIT as well. But only do that if the main CPU JIT is enabled, in order to aid
|
||||
// debugging attempts - if the main JIT doesn't work, this one won't do any better, probably.
|
||||
if (jitCache && g_Config.bVertexDecoderJit && g_Config.iCpuCore == (int)CPUCore::JIT) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user