1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-26 15:32:19 +00:00

bringris:: fix next_buffer

This commit is contained in:
Zeno Rogue 2025-06-25 00:26:34 +02:00
parent 21055c956a
commit 506a718c3e

View File

@ -1510,6 +1510,11 @@ int BRINGRIS_TEXTURESIZE = 256;
int nxmin, nxmax, nymin, nymax;
auto ah = addHook(hooks_resetGL, 500, [] {
println(hlog, "hooks_resetGL called");
if(next_buffer) { delete next_buffer; next_buffer = nullptr; }
});
void render_next(int xstart) {
if(!next_buffer && !next_fail) {
next_buffer = new renderbuffer(BRINGRIS_TEXTURESIZE, BRINGRIS_TEXTURESIZE, true);