Bitmap: Ensure cloned bitmap is non-mega
This commit is contained in:
parent
3359451f3a
commit
28ff5cd33c
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue