From 7beaae25ba4f7f47cdf759d46bace1756c373bb6 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Sat, 13 Mar 2021 19:42:56 +0000 Subject: [PATCH] TINYGL: Fix Compilation with pre-C++-11 Compilers --- graphics/tinygl/zblit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphics/tinygl/zblit.cpp b/graphics/tinygl/zblit.cpp index 9039d2b2d4b..68a67304433 100644 --- a/graphics/tinygl/zblit.cpp +++ b/graphics/tinygl/zblit.cpp @@ -115,7 +115,9 @@ public: _pixels = _buf.getRawBuffer(); } +#ifdef USE_CXX11 Line &operator=(const Line &other) = default; // FIXME: This may need replacing with custom copy operator code +#endif Line(const Line& other) : _buf(other._buf.getFormat(), other._length, DisposeAfterUse::NO), _x(other._x), _y(other._y), _length(other._length) { _buf.copyBuffer(0, 0, _length, other._buf);