From 90710cfcc5883b38423b088a1120a9f18ab1e359 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 13 Jan 2017 17:15:32 +0100 Subject: [PATCH] Added a missing #include directive --- common/gal/opengl/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/gal/opengl/utils.cpp b/common/gal/opengl/utils.cpp index f484075e48..75a9115fa4 100644 --- a/common/gal/opengl/utils.cpp +++ b/common/gal/opengl/utils.cpp @@ -25,7 +25,7 @@ #include // DisplayError #include -#include +#include int checkGlError( const std::string& aInfo, bool aThrow ) { @@ -74,7 +74,7 @@ int checkGlError( const std::string& aInfo, bool aThrow ) if( result != GL_NO_ERROR ) { if( aThrow ) - throw std::runtime_error( errorMsg ); + throw std::runtime_error( errorMsg.mb_str() ); else DisplayError( nullptr, errorMsg ); }