summaryrefslogtreecommitdiff
path: root/src/mbgl/gl
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-05-05 14:11:11 +0200
committerKonstantin Käfer <mail@kkaefer.com>2017-05-05 14:42:47 +0200
commitfd104dd3c229ce42d149a143260407cd259b716c (patch)
treecae0f95069a0b4a0437412c2e5d7dbd796f1792f /src/mbgl/gl
parentbf959b9d866b20b5563bd748313a10f9804b03c1 (diff)
downloadqtlocation-mapboxgl-fd104dd3c229ce42d149a143260407cd259b716c.tar.gz
[core] Throw exceptions by value
Diffstat (limited to 'src/mbgl/gl')
-rw-r--r--src/mbgl/gl/context.cpp4
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;