mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 22:27:43 +00:00
Function-scope statics aren't as efficient as file-scope ones
This commit is contained in:
@@ -8,15 +8,16 @@ namespace specter
|
||||
{
|
||||
static logvisor::Module Log("specter::SplitView");
|
||||
|
||||
static const zeus::RGBA32 Tex[3] =
|
||||
{
|
||||
{0,0,0,64},
|
||||
{0,0,0,255},
|
||||
{255,255,255,64}
|
||||
};
|
||||
|
||||
void SplitView::Resources::init(boo::IGraphicsDataFactory::Context& ctx, const IThemeData& theme)
|
||||
{
|
||||
static const zeus::RGBA32 tex[3] =
|
||||
{
|
||||
{0,0,0,64},
|
||||
{0,0,0,255},
|
||||
{255,255,255,64}
|
||||
};
|
||||
m_shadingTex = ctx.newStaticTexture(3, 1, 1, boo::TextureFormat::RGBA8, tex, 12);
|
||||
m_shadingTex = ctx.newStaticTexture(3, 1, 1, boo::TextureFormat::RGBA8, Tex, 12);
|
||||
}
|
||||
|
||||
SplitView::SplitView(ViewResources& res, View& parentView, ISplitSpaceController* controller,
|
||||
|
||||
Reference in New Issue
Block a user