Fix sdl and linux build

This commit is contained in:
Filip Gawin
2020-04-24 17:41:48 +02:00
parent 374f951d7c
commit e3227f5558
10 changed files with 18 additions and 13 deletions

View File

@@ -287,11 +287,11 @@ putpixel(Canvas *canvas, Point3 p, Color c)
case DEPTHTEST_ALWAYS:
break;
case DEPTHTEST_GEQUAL:
if(p.z < *z)
if(p.z < (int)*z)
return;
break;
case DEPTHTEST_GREATER:
if(p.z <= *z)
if(p.z <= (int)*z)
return;
break;
}