From 28ff5cd33c8c80c89e5f8e3ca56a73577c8fa5e5 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Thu, 31 Oct 2013 10:26:39 +0100 Subject: [PATCH] Bitmap: Ensure cloned bitmap is non-mega --- src/bitmap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bitmap.cpp b/src/bitmap.cpp index c624b12..cf10399 100644 --- a/src/bitmap.cpp +++ b/src/bitmap.cpp @@ -266,6 +266,8 @@ Bitmap::Bitmap(int width, int height) Bitmap::Bitmap(const Bitmap &other) { + other.ensureNonMega(); + p = new BitmapPrivate; p->gl = shState->texPool().request(other.width(), other.height());