1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed renderbuffer from SDL

This commit is contained in:
Zeno Rogue 2022-04-26 00:36:27 +02:00
parent ccdc858f65
commit 90a123dcb6

View File

@ -83,13 +83,14 @@ renderbuffer::renderbuffer(int x, int y, bool gl) : x(x), y(y) {
srf = NULL;
#endif
tx = next_p2(x);
ty = next_p2(y);
# if CAP_GL
if(gl) {
GLERR("renderbuffer init");
resetbuffer rb;
GLERR("after resetbuffer");
tx = next_p2(x);
ty = next_p2(y);
FramebufferName = renderedTexture = depth_stencil_rb = 0;
GLERR("even before");