Qt Software Rendrer: Use a casted comparison instead of calling memcmp().
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user