Reverted r21451, otherwise ParticlesII crashes after a while, if the

accelerant doesn't support moving the frame buffer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32146 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2009-08-05 21:29:22 +00:00
parent 86a1f079e9
commit 804f3b726b
@@ -95,7 +95,7 @@ void NApplication::ReadyToRun()
NWindowScreen *ws = new NWindowScreen(&ret);
PRINT(("WindowScreen ctor returned. ret = %s\n", strerror(ret)));
// exit if constructing the WindowScreen failed.
if((ws == NULL) || (ret < B_OK))
if((ws == NULL) || (ret < B_OK) || !ws->CanControlFrameBuffer())
{
//printf("the window screen was NULL, or there was an error\n");
PostMessage(B_QUIT_REQUESTED);