Calling LockGL() before BGLView::AttachedToWindow() isn't allowed, it
seems, as it leads to a crash. The GLDirectMode test app now works. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20725 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -102,8 +102,8 @@ SampleGLView::SampleGLView(BRect frame, uint32 type)
|
||||
|
||||
void SampleGLView::AttachedToWindow(void)
|
||||
{
|
||||
LockGL();
|
||||
BGLView::AttachedToWindow();
|
||||
LockGL();
|
||||
gInit();
|
||||
gReshape(width, height);
|
||||
UnlockGL();
|
||||
|
||||
Reference in New Issue
Block a user