Qt Software Rendrer: Use a casted comparison instead of calling memcmp().

This commit is contained in:
OBattler
2025-09-18 04:32:23 +02:00
parent 2ba7b4a768
commit 381a06a44c

View File

@@ -59,8 +59,7 @@ SoftwareRenderer::onBlit(int buf_idx, int x, int y, int w, int h)
{ {
/* TODO: should look into deleteLater() */ /* TODO: should look into deleteLater() */
auto tval = this; auto tval = this;
void *nuldata = 0; if ((void *) tval == nullptr)
if (memcmp(&tval, &nuldata, sizeof(void *)) == 0)
return; return;
auto origSource = source; auto origSource = source;