mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-28 08:22:18 +00:00
bringris:: fix next_buffer
This commit is contained in:
parent
21055c956a
commit
506a718c3e
@ -1510,6 +1510,11 @@ int BRINGRIS_TEXTURESIZE = 256;
|
|||||||
|
|
||||||
int nxmin, nxmax, nymin, nymax;
|
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) {
|
void render_next(int xstart) {
|
||||||
if(!next_buffer && !next_fail) {
|
if(!next_buffer && !next_fail) {
|
||||||
next_buffer = new renderbuffer(BRINGRIS_TEXTURESIZE, BRINGRIS_TEXTURESIZE, true);
|
next_buffer = new renderbuffer(BRINGRIS_TEXTURESIZE, BRINGRIS_TEXTURESIZE, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user