summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-07-18 12:27:31 +0200
committerSergeanur <s.anureev@yandex.ua>2020-07-18 12:27:31 +0200
commitdd717b2d933a024da14e8232fadc1302064ab2bf (patch)
tree9939479581b09e5024b2e464fe8f74e1e810ef43
parentFix TempVertexBuffer overflow (diff)
downloadre3-dd717b2d933a024da14e8232fadc1302064ab2bf.tar
re3-dd717b2d933a024da14e8232fadc1302064ab2bf.tar.gz
re3-dd717b2d933a024da14e8232fadc1302064ab2bf.tar.bz2
re3-dd717b2d933a024da14e8232fadc1302064ab2bf.tar.lz
re3-dd717b2d933a024da14e8232fadc1302064ab2bf.tar.xz
re3-dd717b2d933a024da14e8232fadc1302064ab2bf.tar.zst
re3-dd717b2d933a024da14e8232fadc1302064ab2bf.zip
Diffstat (limited to '')
-rw-r--r--src/render/Sprite2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Sprite2d.cpp b/src/render/Sprite2d.cpp
index 5f1e79db..b71039e8 100644
--- a/src/render/Sprite2d.cpp
+++ b/src/render/Sprite2d.cpp
@@ -449,7 +449,7 @@ CSprite2d::AddToBuffer(const CRect &r, const CRGBA &c, float u0, float v0, float
bool
CSprite2d::IsVertexBufferFull()
{
- return (nextBufferVertex > TEMPBUFFERINDEXSIZE-128-4 || nextBufferIndex > ARRAY_SIZE(TempBufferRenderIndexList)-6);
+ return (nextBufferVertex > TEMPBUFFERVERTSIZE-128-4 || nextBufferIndex > ARRAY_SIZE(TempBufferRenderIndexList)-6);
}
void