backend update from Raze

* moving large allocations off the stack
* use proper printf formatters for size_t and ptrdiff_t.
* adding some missing 'noexcept'.
This commit is contained in:
Christoph Oelckers 2024-01-06 15:24:10 +01:00
commit 83aa9388ca
29 changed files with 117 additions and 109 deletions

View file

@ -192,7 +192,7 @@ public:
TArray<TwoDVertex> mVertices;
TArray<RenderCommand> mData;
int Width, Height;
bool isIn2D;
bool isIn2D = false;
bool locked = false; // prevents clearing of the data so it can be reused multiple times (useful for screen fades)
float screenFade = 1.f;
DVector2 offset;
@ -317,7 +317,7 @@ public:
RefCountedPtr<DShape2DBufferInfo> bufferInfo;
DrawParms* lastParms;
DrawParms* lastParms = nullptr;
void OnDestroy() override;
};