check for NULL in advance (CID 1056)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27900 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2008-10-07 07:49:36 +00:00
parent bebd82c2b2
commit 044627ee89
+4 -1
View File
@@ -580,8 +580,11 @@ GlutBWindow::GlutBWindow(BRect frame, char *name) :
}
void GlutBWindow::DirectConnected( direct_buffer_info *info ) {
if (!bgl)
return;
bgl->DirectConnected(info);
if(bgl && !fConnectionDisabled) {
if(!fConnectionDisabled) {
bgl->EnableDirectMode(true);
}
int newVisState;