Fix naveditor compiler warning

Use correct format specifier for size types, and return a value in 'sdl_init'.
This commit is contained in:
Kawe Mazidjatari 2023-02-26 19:35:33 +01:00
parent ef5a9b6348
commit c06f9cfe60

View File

@ -48,14 +48,14 @@ void save_ply(std::vector<float>& pts,std::vector<int>& colors,rcIntArray& tris)
fprintf(f,
R"(ply
format ascii 1.0
element vertex %d
element vertex %zu
property float x
property float y
property float z
property uchar red
property uchar green
property uchar blue
element face %d
element face %zu
property list uchar int vertex_index
end_header
)",pts.size()/3,tris.size()/3);
@ -221,6 +221,8 @@ bool sdl_init(SDL_Window*& window, SDL_Renderer*& renderer, int &width, int &hei
SDL_Quit();
return false;
}
return true;
}
#if 1