mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Reporting: Log when vertex count truncated.
This commit is contained in:
1 parent
21bf41e6dd
commit
efacbddaef
1 file changed
+5
-2
@@ -373,8 +373,11 @@ void DrawEngineGLES::DoFlush() {
|
||||
|
||||
// TODO: Split up into multiple draw calls for GLES 2.0 where you can't guarantee support for more than 0x10000 verts.
|
||||
#if defined(MOBILE_DEVICE)
|
||||
if (vertexCount > 0x10000 / 3)
|
||||
vertexCount = 0x10000 / 3;
|
||||
constexpr int vertexCountLimit = 0x10000 / 3;
|
||||
if (vertexCount > vertexCountLimit) {
|
||||
WARN_LOG_REPORT_ONCE(manyVerts, G3D, "Truncating vertex count from %d to %d", vertexCount, vertexCountLimit);
|
||||
vertexCount = vertexCountLimit;
|
||||
}
|
||||
#endif
|
||||
|
||||
SoftwareTransform swTransform(params);
|
||||
|
||||
Reference in new issue
Block a user