From d1144b048487bf1c497c6aa8ae5995f2254fa3f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 21 Dec 2013 13:11:42 +0100 Subject: [PATCH] GCC 4.6 compatibility: no std::string::pop_back(). --- src/AbstractObject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AbstractObject.cpp b/src/AbstractObject.cpp index 3f84c2054..036e64526 100644 --- a/src/AbstractObject.cpp +++ b/src/AbstractObject.cpp @@ -170,7 +170,7 @@ std::string AbstractObject::getLabelImplementationKhr(const GLenum identifier, c #endif /* Pop null terminator and return the string */ - label.pop_back(); + label.resize(size); return label; #else GLsizei size; @@ -212,7 +212,7 @@ std::string AbstractObject::getLabelImplementationExt(const GLenum identifier, c #endif /* Pop null terminator and return the string */ - label.pop_back(); + label.resize(size); return label; }