mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 11:56:49 +01:00
Workaround GCC warning in rasterizer_canvas_batcher
`-Werror=array-bounds` flags when creating a new batch, possibly due to the possibility of the malloc failing (out of memory). This PR adds an explicit `CRASHNOW` in the hope the compiler will recognise this case is not intended to be recoverable.
This commit is contained in:
parent
bc5b8b61ec
commit
88fd023a06
@ -683,7 +683,7 @@ public:
|
||||
|
||||
// this should always succeed after growing
|
||||
batch = bdata.batches.request();
|
||||
RAST_DEBUG_ASSERT(batch);
|
||||
CRASH_COND_MSG(!batch, "Out of memory");
|
||||
}
|
||||
|
||||
if (p_blank) {
|
||||
|
Loading…
Reference in New Issue
Block a user