mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
Merge pull request #16757 from unknownbrackets/truncate-verts
GLES: Apply vertex limit only to GLES2
This commit is contained in:
@@ -383,13 +383,13 @@ void DrawEngineGLES::DoFlush() {
|
||||
int vertexCount = indexGen.VertexCount();
|
||||
|
||||
// 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)
|
||||
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;
|
||||
if (gl_extensions.IsGLES && !gl_extensions.GLES3) {
|
||||
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