1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-13 21:47:38 +00:00

3D geometries should now render without OpenGL

This commit is contained in:
Zeno Rogue
2020-04-06 10:43:28 +02:00
parent 43fd94bed6
commit c1ed54763b
5 changed files with 41 additions and 5 deletions

View File

@@ -1086,6 +1086,7 @@ void draw_shape_for_texture(floorshape* sh) {
/** copy the texture vertices so that there are at least qty of them */
EX void ensure_vertex_number(basic_textureinfo& bti, int qty) {
int s = isize(bti.tvertices);
if(!s) return;
while(isize(bti.tvertices) <= qty) {
for(int i=0; i<s; i++) bti.tvertices.push_back(bti.tvertices[i]);
}