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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user