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:
Philippe Houdoin 2006-11-12 15:04:52 +00:00
parent ead36a7efb
commit 2177785876
2 changed files with 11 additions and 2 deletions

View File

@ -70,7 +70,7 @@ GLInfoWindow::GLInfoWindow(BRect frame)
LockLooper();
// gl->LockGL();
gl->LockGL();
list->AddItem(new BStringItem("OpenGL", 0));
@ -135,7 +135,7 @@ GLInfoWindow::GLInfoWindow(BRect frame)
list->AddItem(new BStringItem(l.String(), 1));
#endif
// gl->UnlockGL();
gl->UnlockGL();
UnlockLooper();
}

View File

@ -1,5 +1,14 @@
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 :
GLInfo.cpp
: be libGL.so