unsafe to define USE_MGL_NAMESPACE globally

This commit is contained in:
David Rose 2004-02-10 18:49:02 +00:00
parent 42d159254e
commit 9089fa3820
5 changed files with 7 additions and 8 deletions

View File

@ -297,11 +297,11 @@
// only need to define HAVE_MESA if you want to run totally headless,
// or if you want to be able to easily switch between Mesa and the
// system OpenGL implementation at runtime. If you compiled Mesa with
// USE_MGL_NAMESPACE defined, define it also here.
// USE_MGL_NAMESPACE defined, define MESA_MGL here.
#define MESA_IPATH
#define MESA_LPATH
#define MESA_LIBS
#define USE_MGL_NAMESPACE
#define MESA_MGL
#defer HAVE_MESA $[libtest $[MESA_LPATH],$[MESA_LIBS]]

View File

@ -69,7 +69,7 @@ $[cdefine HAVE_GL]
/* Define if we have Mesa installed and want to build mesadisplay. */
$[cdefine HAVE_MESA]
$[cdefine USE_MGL_NAMESPACE]
$[cdefine MESA_MGL]
/* Define if we want to build with SGI OpenGL extensions. */
$[cdefine HAVE_SGIGL]

View File

@ -26,8 +26,9 @@
#include "pandabase.h"
#include "config_mesadisplay.h"
#ifdef USE_MGL_NAMESPACE
#ifdef MESA_MGL
#define GLP(name) mgl##name
#define USE_MGL_NAMESPACE 1
#else
#define GLP(name) gl##name
#endif
@ -40,6 +41,7 @@
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/osmesa.h>
#include "glstuff_src.h"

View File

@ -22,8 +22,7 @@
#include "pandabase.h"
#include "graphicsWindow.h"
#include "graphicsPipe.h"
#include <GL/osmesa.h>
#include "mesagsg.h"
class FrameBufferProperties;

View File

@ -22,8 +22,6 @@
#include "pandabase.h"
#include "mesagsg.h"
#include <GL/osmesa.h>
////////////////////////////////////////////////////////////////////
// Class : OSMesaGraphicsStateGuardian
// Description : A tiny specialization on MesaGraphicsStateGuardian to