From 7cf1cfedb37248fd0eb4b2c02b01dd29c640b3e3 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 13 Jan 2017 16:59:31 +0100 Subject: [PATCH] Change exception message time from wxString to std::string --- common/gal/opengl/opengl_compositor.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/gal/opengl/opengl_compositor.cpp b/common/gal/opengl/opengl_compositor.cpp index 2aa302575d..f000433f5d 100644 --- a/common/gal/opengl/opengl_compositor.cpp +++ b/common/gal/opengl/opengl_compositor.cpp @@ -98,11 +98,7 @@ void OPENGL_COMPOSITOR::Initialize() // VECTOR2U is unsigned, so no need to check if < 0 if( dims.x > (unsigned) maxBufSize || dims.y >= (unsigned) maxBufSize ) - { - throw std::runtime_error( - wxString::Format( "Requested render buffer size is %ux%u, but the max supported size is %dx%d", - dims.x, dims.y, maxBufSize, maxBufSize ) ); - } + throw std::runtime_error( "Requested render buffer size is not supported" ); // We need framebuffer objects for drawing the screen contents // Generate framebuffer and a depth buffer