diff --git a/src/r_segs.cpp b/src/r_segs.cpp index 38db1a6b28..ccf6ccf20c 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -54,9 +54,8 @@ CVAR(Bool, r_fogboundary, true, 0) CVAR(Bool, r_drawmirrors, true, 0) EXTERN_CVAR(Bool, r_fullbrightignoresectorcolor); -EXTERN_CVAR(Bool, r_mipmap) -namespace swrenderer +namespace swrenderer { using namespace drawerargs; diff --git a/src/r_things.cpp b/src/r_things.cpp index f03bfbae0a..a1ace0d49c 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -3241,12 +3241,12 @@ void R_CheckOffscreenBuffer(int width, int height, bool spansonly) { if (OffscreenColorBuffer == NULL) { - OffscreenColorBuffer = new BYTE[width * height * 4]; + OffscreenColorBuffer = new BYTE[width * height]; } else if (OffscreenBufferWidth != width || OffscreenBufferHeight != height) { delete[] OffscreenColorBuffer; - OffscreenColorBuffer = new BYTE[width * height * 4]; + OffscreenColorBuffer = new BYTE[width * height]; } } OffscreenBufferWidth = width;