Allowed GLInfo to build for BeOS too.
Locking GL context is better, even if it's not mandatory under Be's R5 OpenGL stack. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19259 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -70,7 +70,7 @@ GLInfoWindow::GLInfoWindow(BRect frame)
|
|||||||
|
|
||||||
LockLooper();
|
LockLooper();
|
||||||
|
|
||||||
// gl->LockGL();
|
gl->LockGL();
|
||||||
|
|
||||||
list->AddItem(new BStringItem("OpenGL", 0));
|
list->AddItem(new BStringItem("OpenGL", 0));
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ GLInfoWindow::GLInfoWindow(BRect frame)
|
|||||||
list->AddItem(new BStringItem(l.String(), 1));
|
list->AddItem(new BStringItem(l.String(), 1));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// gl->UnlockGL();
|
gl->UnlockGL();
|
||||||
|
|
||||||
UnlockLooper();
|
UnlockLooper();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
SubDir HAIKU_TOP src tests kits opengl glinfo ;
|
SubDir HAIKU_TOP src tests kits opengl glinfo ;
|
||||||
|
|
||||||
|
SetSubDirSupportedPlatformsBeOSCompatible ;
|
||||||
|
|
||||||
|
if $(TARGET_PLATFORM) != haiku {
|
||||||
|
# Needed for <GL/glut.h>, not present in R5.
|
||||||
|
# Unfortunately we also get the other headers there,
|
||||||
|
# that we don't really want.
|
||||||
|
UsePublicHeaders opengl ;
|
||||||
|
}
|
||||||
|
|
||||||
SimpleTest GLInfo :
|
SimpleTest GLInfo :
|
||||||
GLInfo.cpp
|
GLInfo.cpp
|
||||||
: be libGL.so
|
: be libGL.so
|
||||||
|
|||||||
Reference in New Issue
Block a user