summaryrefslogtreecommitdiffstats
path: root/src/render/Sprite2d.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-07-20 19:31:59 +0200
committeraap <aap@papnet.eu>2020-07-20 19:50:20 +0200
commit2612c9f12cf0e787e5b3bac955a5488b101111e8 (patch)
tree3c8e0c59894df98cba51f86b2169a35b10619f0f /src/render/Sprite2d.cpp
parentCPlane done (diff)
downloadre3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.gz
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.bz2
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.lz
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.xz
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.zst
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.zip
Diffstat (limited to '')
-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;
}