Apply just the changes from the MLT branch which aren't really part of that work (#3793)
This commit is contained in:
@@ -154,7 +154,7 @@ struct glyph {
|
||||
|
||||
// Font data From Hershey Simplex Font
|
||||
// http://paulbourke.net/dataformats/hershey/
|
||||
|
||||
// NOLINTBEGIN(modernize-use-designated-initializers)
|
||||
const glyph simplex[] = {
|
||||
/* 32 */ {16, 0, nullptr},
|
||||
/* 33 ! */
|
||||
@@ -346,3 +346,4 @@ const glyph simplex[] = {
|
||||
/* 126 ~ */
|
||||
{24, sizeof(simplex_94), simplex_94},
|
||||
};
|
||||
// NOLINTEND(modernize-use-designated-initializers)
|
||||
|
||||
@@ -210,8 +210,9 @@ void DashPatternTexture::upload(gfx::UploadPass& uploadPass) {
|
||||
if (std::holds_alternative<AlphaImage>(texture)) {
|
||||
auto tempTexture = uploadPass.getContext().createTexture2D();
|
||||
tempTexture->upload(std::get<AlphaImage>(texture));
|
||||
tempTexture->setSamplerConfiguration(
|
||||
{gfx::TextureFilterType::Linear, gfx::TextureWrapType::Repeat, gfx::TextureWrapType::Clamp});
|
||||
tempTexture->setSamplerConfiguration({.filter = gfx::TextureFilterType::Linear,
|
||||
.wrapU = gfx::TextureWrapType::Repeat,
|
||||
.wrapV = gfx::TextureWrapType::Clamp});
|
||||
texture = std::move(tempTexture);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user