mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
unsafe to define USE_MGL_NAMESPACE globally
This commit is contained in:
parent
42d159254e
commit
9089fa3820
@ -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]]
|
||||
|
||||
|
||||
|
@ -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]
|
||||
|
@ -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"
|
||||
|
||||
|
@ -22,8 +22,7 @@
|
||||
#include "pandabase.h"
|
||||
#include "graphicsWindow.h"
|
||||
#include "graphicsPipe.h"
|
||||
|
||||
#include <GL/osmesa.h>
|
||||
#include "mesagsg.h"
|
||||
|
||||
class FrameBufferProperties;
|
||||
|
||||
|
@ -22,8 +22,6 @@
|
||||
#include "pandabase.h"
|
||||
#include "mesagsg.h"
|
||||
|
||||
#include <GL/osmesa.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Class : OSMesaGraphicsStateGuardian
|
||||
// Description : A tiny specialization on MesaGraphicsStateGuardian to
|
||||
|
Loading…
x
Reference in New Issue
Block a user