summaryrefslogtreecommitdiffstats
path: root/src/render/Sprite2d.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-07-20 19:56:03 +0200
committerGitHub <noreply@github.com>2020-07-20 19:56:03 +0200
commitf0f3ce018dc8da7d702bcb25755f8443d25796e6 (patch)
tree3c8e0c59894df98cba51f86b2169a35b10619f0f /src/render/Sprite2d.cpp
parentFix OneShotPriority overflow (diff)
parentCPlaneTrails and CPlaneBanners done (diff)
downloadre3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar
re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.gz
re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.bz2
re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.lz
re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.xz
re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.zst
re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.zip
Diffstat (limited to 'src/render/Sprite2d.cpp')
-rw-r--r--src/render/Sprite2d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/Sprite2d.cpp b/src/render/Sprite2d.cpp
index b71039e8..cba64e7a 100644
--- a/src/render/Sprite2d.cpp
+++ b/src/render/Sprite2d.cpp
@@ -432,7 +432,7 @@ void CSprite2d::Draw2DPolygon(float x1, float y1, float x2, float y2, float x3,
void
CSprite2d::AddToBuffer(const CRect &r, const CRGBA &c, float u0, float v0, float u1, float v1, float u3, float v3, float u2, float v2)
{
- SetVertices(&TempVertexBuffer[nextBufferVertex], r, c, c, c, c, u0, v0, u1, v1, u3, v3, u2, v2);
+ SetVertices(&TempVertexBuffer.im2d[nextBufferVertex], r, c, c, c, c, u0, v0, u1, v1, u3, v3, u2, v2);
RwImVertexIndex *pIndexList = &TempBufferRenderIndexList[nextBufferIndex];
pIndexList[0] = nextBufferVertex;
pIndexList[1] = nextBufferVertex + 1;
@@ -457,7 +457,7 @@ CSprite2d::RenderVertexBuffer()
{
if (nextBufferVertex > 0) {
RwRenderStateSet(rwRENDERSTATETEXTUREFILTER, (void*)rwFILTERLINEAR);
- RwIm2DRenderIndexedPrimitive(rwPRIMTYPETRILIST, TempVertexBuffer, nextBufferVertex, TempBufferRenderIndexList, nextBufferIndex);
+ RwIm2DRenderIndexedPrimitive(rwPRIMTYPETRILIST, TempVertexBuffer.im2d, nextBufferVertex, TempBufferRenderIndexList, nextBufferIndex);
nextBufferVertex = 0;
nextBufferIndex = 0;
}