forgot another important detail...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12451 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2005-04-20 10:36:05 +00:00
parent f8bbbd8332
commit 3934e7037e
2 changed files with 2 additions and 0 deletions
@@ -331,6 +331,7 @@ AccelerantHWInterface::SetMode(const display_mode &mode)
// being. The color space conversion is handled in CopyBackToFront()
delete fBackBuffer;
fBackBuffer = NULL;
// TODO: Above not true anymore for single buffered mode!!!
// -> fall back to double buffer for fDisplayMode.space != B_RGB32
@@ -398,6 +398,7 @@ ViewHWInterface::SetMode(const display_mode &mode)
// free and reallocate the bitmaps while the window is locked,
// so that the view does not accidentally draw a freed bitmap
delete fBackBuffer;
fBackBuffer = NULL;
delete fFrontBuffer;
// NOTE: backbuffer is always B_RGBA32, this simplifies the