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