From c4462667a9c58859565bb8430dbcfc103f2c6b4c Mon Sep 17 00:00:00 2001 From: barbudreadmon Date: Fri, 20 Dec 2024 11:12:19 +0100 Subject: [PATCH] vector: make sure pBurnDraw exists before memsetting it attempt at properly fixing https://github.com/finalburnneo/FBNeo/pull/1928 --- src/burn/vector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/burn/vector.cpp b/src/burn/vector.cpp index be2295671a..759e05f1bb 100644 --- a/src/burn/vector.cpp +++ b/src/burn/vector.cpp @@ -305,6 +305,7 @@ void draw_vector(UINT32 *palette) // copy to the screen, only draw pixels that aren't black // should be safe for any bit depth with putpix + if (pBurnDraw != NULL) { memset (pBurnDraw, 0, nScreenWidth * nScreenHeight * nBurnBpp);