From 3fc46f1597251d37ee929beadea400b870fd6b6b Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 30 Sep 2017 18:26:31 -1000 Subject: [PATCH] Updates for texture clamp mode --- specter/lib/FontCache.cpp | 8 ++++---- specter/lib/RootView.cpp | 2 +- specter/lib/SplitView.cpp | 2 +- specter/lib/Toolbar.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/specter/lib/FontCache.cpp b/specter/lib/FontCache.cpp index 7dc235769..3ca2bd370 100644 --- a/specter/lib/FontCache.cpp +++ b/specter/lib/FontCache.cpp @@ -395,7 +395,7 @@ FontAtlas::FontAtlas(boo::IGraphicsDataFactory* gf, FT_Face face, uint32_t dpi, { m_tex = ctx.newStaticArrayTexture(TEXMAP_DIM, finalHeight, fullTexmapLayers + 1, 1, - boo::TextureFormat::RGBA8, texmap.get(), bufSz); + boo::TextureFormat::RGBA8, boo::TextureClampMode::Repeat, texmap.get(), bufSz); return true; }); } @@ -480,7 +480,7 @@ FontAtlas::FontAtlas(boo::IGraphicsDataFactory* gf, FT_Face face, uint32_t dpi, { m_tex = ctx.newStaticArrayTexture(TEXMAP_DIM, finalHeight, fullTexmapLayers + 1, 1, - boo::TextureFormat::I8, texmap.get(), bufSz); + boo::TextureFormat::I8, boo::TextureClampMode::Repeat, texmap.get(), bufSz); return true; }); } @@ -604,7 +604,7 @@ FontAtlas::FontAtlas(boo::IGraphicsDataFactory* gf, FT_Face face, uint32_t dpi, { m_tex = ctx.newStaticArrayTexture(TEXMAP_DIM, finalHeight, fullTexmapLayers + 1, 1, - boo::TextureFormat::RGBA8, texmap.get(), bufSz); + boo::TextureFormat::RGBA8, boo::TextureClampMode::Repeat, texmap.get(), bufSz); return false; }); } @@ -689,7 +689,7 @@ FontAtlas::FontAtlas(boo::IGraphicsDataFactory* gf, FT_Face face, uint32_t dpi, { m_tex = ctx.newStaticArrayTexture(TEXMAP_DIM, finalHeight, fullTexmapLayers + 1, 1, - boo::TextureFormat::I8, texmap.get(), bufSz); + boo::TextureFormat::I8, boo::TextureClampMode::Repeat, texmap.get(), bufSz); return true; }); } diff --git a/specter/lib/RootView.cpp b/specter/lib/RootView.cpp index d74e89204..1d53df411 100644 --- a/specter/lib/RootView.cpp +++ b/specter/lib/RootView.cpp @@ -16,7 +16,7 @@ RootView::RootView(IViewManager& viewMan, ViewResources& res, boo::IWindow* wind { buildResources(ctx, res); m_splitMenuSystem.emplace(*this, ctx); - m_renderTex = ctx.newRenderTexture(rect.size[0], rect.size[1], 1, 3); + m_renderTex = ctx.newRenderTexture(rect.size[0], rect.size[1], boo::TextureClampMode::Repeat, 1, 3); return true; }); resized(rect, rect); diff --git a/specter/lib/SplitView.cpp b/specter/lib/SplitView.cpp index fc052710d..21bb10d7d 100644 --- a/specter/lib/SplitView.cpp +++ b/specter/lib/SplitView.cpp @@ -17,7 +17,7 @@ static const zeus::RGBA32 Tex[3] = void SplitView::Resources::init(boo::IGraphicsDataFactory::Context& ctx, const IThemeData& theme) { - m_shadingTex = ctx.newStaticTexture(3, 1, 1, boo::TextureFormat::RGBA8, Tex, 12); + m_shadingTex = ctx.newStaticTexture(3, 1, 1, boo::TextureFormat::RGBA8, boo::TextureClampMode::Repeat, Tex, 12); } SplitView::SplitView(ViewResources& res, View& parentView, ISplitSpaceController* controller, diff --git a/specter/lib/Toolbar.cpp b/specter/lib/Toolbar.cpp index f325408fa..9bc1a5eab 100644 --- a/specter/lib/Toolbar.cpp +++ b/specter/lib/Toolbar.cpp @@ -19,7 +19,7 @@ static const zeus::RGBA32 Tex[] = void Toolbar::Resources::init(boo::IGraphicsDataFactory::Context& ctx, const IThemeData& theme) { - m_shadingTex = ctx.newStaticTexture(4, 1, 1, boo::TextureFormat::RGBA8, Tex, 16); + m_shadingTex = ctx.newStaticTexture(4, 1, 1, boo::TextureFormat::RGBA8, boo::TextureClampMode::Repeat, Tex, 16); } Toolbar::Toolbar(ViewResources& res, View& parentView, Position tbPos, unsigned units)