From 2177785876d69c80a6f66042eb0cf37b00cd0148 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Sun, 12 Nov 2006 15:04:52 +0000 Subject: [PATCH] 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 --- src/tests/kits/opengl/glinfo/GLInfo.cpp | 4 ++-- src/tests/kits/opengl/glinfo/Jamfile | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/tests/kits/opengl/glinfo/GLInfo.cpp b/src/tests/kits/opengl/glinfo/GLInfo.cpp index cfa8c83af8..4f01f86f40 100644 --- a/src/tests/kits/opengl/glinfo/GLInfo.cpp +++ b/src/tests/kits/opengl/glinfo/GLInfo.cpp @@ -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(); } diff --git a/src/tests/kits/opengl/glinfo/Jamfile b/src/tests/kits/opengl/glinfo/Jamfile index a3532032ee..8729ac3052 100644 --- a/src/tests/kits/opengl/glinfo/Jamfile +++ b/src/tests/kits/opengl/glinfo/Jamfile @@ -1,5 +1,14 @@ SubDir HAIKU_TOP src tests kits opengl glinfo ; +SetSubDirSupportedPlatformsBeOSCompatible ; + +if $(TARGET_PLATFORM) != haiku { + # Needed for , 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