don't try to allocate an empty BBitmap
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30869 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
80b01907d9
commit
7ba59d8729
@ -605,6 +605,9 @@ MesaSoftwareRenderer::_AllocateBitmap()
|
||||
{
|
||||
// allocate new size of back buffer bitmap
|
||||
delete fBitmap;
|
||||
fBitmap = NULL;
|
||||
if (fWidth < 1 || fHeight < 1)
|
||||
return;
|
||||
BRect rect(0.0, 0.0, fWidth - 1, fHeight - 1);
|
||||
fBitmap = new BBitmap(rect, fColorSpace);
|
||||
for (uint i = 0; i < fHeight; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user