Merge pull request #28 from ShFil119/master

Fix sdl and linux build
This commit is contained in:
aap
2020-04-25 00:45:51 +02:00
committed by GitHub
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;
}