Fix Texture2D upload unpack alignment, filtering (#1219)
This commit is contained in:
@@ -86,8 +86,12 @@ void GeometryTileRenderData::upload(gfx::UploadPass& uploadPass) {
|
||||
|
||||
assert(atlasTextures);
|
||||
|
||||
if (layoutResult->glyphAtlasImage) {
|
||||
if (layoutResult->glyphAtlasImage && layoutResult->glyphAtlasImage->valid()) {
|
||||
atlasTextures->glyph = uploadPass.getContext().createTexture2D();
|
||||
atlasTextures->glyph->setSamplerConfiguration({
|
||||
gfx::TextureFilterType::Linear,
|
||||
gfx::TextureWrapType::Clamp,
|
||||
gfx::TextureWrapType::Clamp});
|
||||
atlasTextures->glyph->upload(*layoutResult->glyphAtlasImage);
|
||||
layoutResult->glyphAtlasImage = {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user