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()
|
// being. The color space conversion is handled in CopyBackToFront()
|
||||||
|
|
||||||
delete fBackBuffer;
|
delete fBackBuffer;
|
||||||
|
fBackBuffer = NULL;
|
||||||
|
|
||||||
// TODO: Above not true anymore for single buffered mode!!!
|
// TODO: Above not true anymore for single buffered mode!!!
|
||||||
// -> fall back to double buffer for fDisplayMode.space != B_RGB32
|
// -> 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,
|
// free and reallocate the bitmaps while the window is locked,
|
||||||
// so that the view does not accidentally draw a freed bitmap
|
// so that the view does not accidentally draw a freed bitmap
|
||||||
delete fBackBuffer;
|
delete fBackBuffer;
|
||||||
|
fBackBuffer = NULL;
|
||||||
delete fFrontBuffer;
|
delete fFrontBuffer;
|
||||||
|
|
||||||
// NOTE: backbuffer is always B_RGBA32, this simplifies the
|
// NOTE: backbuffer is always B_RGBA32, this simplifies the
|
||||||
|
|||||||
Reference in New Issue
Block a user