mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-23 17:49:16 +01:00
Fix TempVertexBuffer overflow
This commit is contained in:
parent
30384bb4ef
commit
cf5dd6289e
@ -5,8 +5,8 @@
|
||||
int32 TempBufferVerticesStored;
|
||||
int32 TempBufferIndicesStored;
|
||||
|
||||
RwIm2DVertex TempVertexBuffer[TEMPBUFFERVERTSIZE];
|
||||
RwIm3DVertex *TempBufferRenderVertices = (RwIm3DVertex * )TempVertexBuffer;
|
||||
RwIm3DVertex TempBufferRenderVertices[TEMPBUFFERVERTSIZE];
|
||||
RwIm2DVertex *TempVertexBuffer = (RwIm2DVertex*)TempBufferRenderVertices;
|
||||
RwImVertexIndex TempBufferRenderIndexList[TEMPBUFFERINDEXSIZE];
|
||||
|
||||
int RenderBuffer::VerticesToBeStored;
|
||||
|
@ -14,6 +14,6 @@ public:
|
||||
|
||||
extern int32 TempBufferVerticesStored;
|
||||
extern int32 TempBufferIndicesStored;
|
||||
extern RwIm2DVertex TempVertexBuffer[TEMPBUFFERVERTSIZE];
|
||||
extern RwIm3DVertex *TempBufferRenderVertices;
|
||||
extern RwIm2DVertex *TempVertexBuffer;
|
||||
extern RwIm3DVertex TempBufferRenderVertices[TEMPBUFFERVERTSIZE];
|
||||
extern RwImVertexIndex TempBufferRenderIndexList[TEMPBUFFERINDEXSIZE];
|
@ -449,7 +449,7 @@ CSprite2d::AddToBuffer(const CRect &r, const CRGBA &c, float u0, float v0, float
|
||||
bool
|
||||
CSprite2d::IsVertexBufferFull()
|
||||
{
|
||||
return (nextBufferVertex > ARRAY_SIZE(TempVertexBuffer)-128-4 || nextBufferIndex > ARRAY_SIZE(TempBufferRenderIndexList)-6);
|
||||
return (nextBufferVertex > TEMPBUFFERINDEXSIZE-128-4 || nextBufferIndex > ARRAY_SIZE(TempBufferRenderIndexList)-6);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user