mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Always use a 16 bit index array for quad indices, with multiple draws when necessary. See issue #1356.
This commit is contained in:
@@ -232,7 +232,7 @@ bool Graphics::setMode(int width, int height, int pixelwidth, int pixelheight, b
|
||||
// index buffer objects, since the shared index buffer used by QuadIndices
|
||||
// objects is destroyed when the last object is destroyed.
|
||||
if (quadIndices == nullptr)
|
||||
quadIndices = new QuadIndices(this, 20);
|
||||
quadIndices = new QuadIndices(this);
|
||||
|
||||
// Restore the graphics state.
|
||||
restoreState(states.back());
|
||||
@@ -543,7 +543,6 @@ void Graphics::endPass()
|
||||
if (mask != 0)
|
||||
glBlitFramebuffer(0, 0, w, h, 0, 0, w, h, mask, GL_NEAREST);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
for (const auto &rt : rts.colors)
|
||||
|
||||
Reference in New Issue
Block a user