From Colin McDonald, "Fixes for some duplicate global symbol definitions in the plugins,

which cause errors when creating a statically linked executable."
This commit is contained in:
Robert Osfield
2005-11-02 10:29:38 +00:00
parent 21c5a129ff
commit 781f6d3cec
8 changed files with 20 additions and 7 deletions

View File

@@ -403,6 +403,10 @@ void FrameBufferObject::apply(State &state) const
if (_unsupported[contextID])
return;
state.checkGLErrors("A");
FBOExtensions* ext = FBOExtensions::instance(contextID);
if (!ext->isSupported())
{
@@ -417,6 +421,8 @@ void FrameBufferObject::apply(State &state) const
return;
}
state.checkGLErrors("B");
int &dirtyAttachmentList = _dirtyAttachmentList[contextID];
GLuint &fboID = _fboID[contextID];
@@ -433,6 +439,8 @@ void FrameBufferObject::apply(State &state) const
}
state.checkGLErrors("C");
if (dirtyAttachmentList)
{
// create textures and mipmaps before we bind the frame buffer object
@@ -444,8 +452,12 @@ void FrameBufferObject::apply(State &state) const
}
state.checkGLErrors("D");
ext->glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fboID);
state.checkGLErrors("E");
if (dirtyAttachmentList)
{
for (AttachmentMap::const_iterator i=_attachments.begin(); i!=_attachments.end(); ++i)
@@ -455,6 +467,7 @@ void FrameBufferObject::apply(State &state) const
}
dirtyAttachmentList = 0;
}
state.checkGLErrors("F");
}
int FrameBufferObject::compare(const StateAttribute &sa) const

View File

@@ -12,7 +12,7 @@ using namespace flt;
//
////////////////////////////////////////////////////////////////////
RegisterRecordProxy<GroupRecord> g_GroupProxy;
RegisterRecordProxy<GroupRecord> g_fltGroupProxy;
GroupRecord::GroupRecord()
{

View File

@@ -12,7 +12,7 @@ using namespace flt;
//
////////////////////////////////////////////////////////////////////
RegisterRecordProxy<ObjectRecord> g_ObjectProxy;
RegisterRecordProxy<ObjectRecord> g_fltObjectProxy;
ObjectRecord::ObjectRecord()
{

View File

@@ -12,7 +12,7 @@ using namespace flt;
//
////////////////////////////////////////////////////////////////////
RegisterRecordProxy<SwitchRecord> g_SwitchProxy;
RegisterRecordProxy<SwitchRecord> g_fltSwitchProxy;
SwitchRecord::SwitchRecord()
{

View File

@@ -13,7 +13,7 @@ bool MultiSwitch_readLocalData(Object& obj, Input& fr);
bool MultiSwitch_writeLocalData(const Object& obj, Output& fw);
// register the read and write functions with the osgDB::Registry.
RegisterDotOsgWrapperProxy g_SwitchProxy
RegisterDotOsgWrapperProxy g_simSwitchProxy
(
new osgSim::MultiSwitch,
"MultiSwitch",

View File

@@ -29,7 +29,7 @@
#define EXTENSION_NAME "rot"
bool getFilenameAndParams(const std::string& input, std::string& filename, std::string& params)
static bool getFilenameAndParams(const std::string& input, std::string& filename, std::string& params)
{
// find the start of the params list, accounting for nesting of [] and () brackets,
// note, we are working backwards.

View File

@@ -30,7 +30,7 @@
#define EXTENSION_NAME "scale"
bool getFilenameAndParams(const std::string& input, std::string& filename, std::string& params)
static bool getFilenameAndParams(const std::string& input, std::string& filename, std::string& params)
{
// find the start of the params list, accounting for nesting of [] and () brackets,
// note, we are working backwards.

View File

@@ -30,7 +30,7 @@
#define EXTENSION_NAME "trans"
bool getFilenameAndParams(const std::string& input, std::string& filename, std::string& params)
static bool getFilenameAndParams(const std::string& input, std::string& filename, std::string& params)
{
// find the start of the params list, accounting for nesting of [] and () brackets,
// note, we are working backwards.