diff options
Diffstat (limited to 'src/mbgl')
-rw-r--r-- | src/mbgl/gl/context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/gl/context.cpp b/src/mbgl/gl/context.cpp index 1a5a6a2289..3ab1260d27 100644 --- a/src/mbgl/gl/context.cpp +++ b/src/mbgl/gl/context.cpp @@ -341,7 +341,7 @@ Framebuffer Context::createFramebuffer(const Renderbuffer<RenderbufferType::RGBA>& color, const Renderbuffer<RenderbufferType::DepthStencil>& depthStencil) { if (color.size != depthStencil.size) { - throw new std::runtime_error("Renderbuffer size mismatch"); + throw std::runtime_error("Renderbuffer size mismatch"); } auto fbo = createFramebuffer(); bindFramebuffer = fbo; @@ -365,7 +365,7 @@ Framebuffer Context::createFramebuffer(const Texture& color, const Renderbuffer<RenderbufferType::DepthStencil>& depthStencil) { if (color.size != depthStencil.size) { - throw new std::runtime_error("Renderbuffer size mismatch"); + throw std::runtime_error("Renderbuffer size mismatch"); } auto fbo = createFramebuffer(); bindFramebuffer = fbo; |