mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-14 15:40:18 +00:00
Merge branch 'static_copy' into 'master'
Do not copy a static string See merge request OpenMW/openmw!3399
This commit is contained in:
commit
08b9da0023
@ -7,6 +7,8 @@
|
||||
|
||||
namespace fx
|
||||
{
|
||||
std::string StateUpdater::sDefinition = UniformData::getDefinition("_omw_data");
|
||||
|
||||
StateUpdater::StateUpdater(bool useUBO)
|
||||
: mUseUBO(useUBO)
|
||||
{
|
||||
|
@ -100,11 +100,7 @@ namespace fx
|
||||
mPointLightBuffer = std::move(buffer);
|
||||
}
|
||||
|
||||
static std::string getStructDefinition()
|
||||
{
|
||||
static std::string definition = UniformData::getDefinition("_omw_data");
|
||||
return definition;
|
||||
}
|
||||
static const std::string& getStructDefinition() { return sDefinition; }
|
||||
|
||||
void setDefaults(osg::StateSet* stateset) override;
|
||||
|
||||
@ -275,6 +271,8 @@ namespace fx
|
||||
UniformData mData;
|
||||
bool mUseUBO;
|
||||
|
||||
static std::string sDefinition;
|
||||
|
||||
std::shared_ptr<SceneUtil::PPLightBuffer> mPointLightBuffer;
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user