Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
Updates for texture clamp mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jackoalan committed Oct 1, 2017
1 parent 6a89d8c commit 02e557c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lib/FontCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
Expand Down Expand Up @@ -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;
});
}
Expand Down Expand Up @@ -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;
});
}
Expand Down Expand Up @@ -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;
});
}
Expand Down
2 changes: 1 addition & 1 deletion lib/RootView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/SplitView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/Toolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 02e557c

Please sign in to comment.