Bitmap: Ensure cloned bitmap is non-mega

This commit is contained in:
Jonas Kulla 2013-10-31 10:26:39 +01:00
parent 3359451f3a
commit 28ff5cd33c
1 changed files with 2 additions and 0 deletions

View File

@ -266,6 +266,8 @@ Bitmap::Bitmap(int width, int height)
Bitmap::Bitmap(const Bitmap &other) Bitmap::Bitmap(const Bitmap &other)
{ {
other.ensureNonMega();
p = new BitmapPrivate; p = new BitmapPrivate;
p->gl = shState->texPool().request(other.width(), other.height()); p->gl = shState->texPool().request(other.width(), other.height());