1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 22:39:53 +00:00

rv::platformer::added missing create_sprite_texture

This commit is contained in:
Zeno Rogue 2022-02-26 23:59:40 +01:00
parent 4df17161d7
commit d8d5e2512d

View File

@ -632,6 +632,7 @@ void render_room(room *r) {
template<class R> void render_room_objects(room *r, R render_at) { template<class R> void render_room_objects(room *r, R render_at) {
auto pb = get_pixel_bbox(); auto pb = get_pixel_bbox();
if(r != current_room) return; if(r != current_room) return;
create_sprite_texture();
render_at(sprite_texture->textureid, pb.minx, pb.miny, pb.maxx, pb.maxy, 0, 0, man_x/256., man_y/256.); render_at(sprite_texture->textureid, pb.minx, pb.miny, pb.maxx, pb.maxy, 0, 0, man_x/256., man_y/256.);
} }