summaryrefslogtreecommitdiff
path: root/src/font.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-01-30 16:25:49 -0500
committerJonathan Bradley <jcb@pikum.xyz>2025-01-30 16:25:49 -0500
commitf6fca8225d98f79ee245596e1ff4b1b2309cdb12 (patch)
tree2acfb82b8869e59df159d3ad927e8f82d50c8820 /src/font.cpp
parenta13b4a8296a8623cb50a4ec5d23a1e39b3e019c0 (diff)
pke: consolidate duplicated vulkan sampler
Diffstat (limited to 'src/font.cpp')
-rw-r--r--src/font.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/font.cpp b/src/font.cpp
index f65866e..3162362 100644
--- a/src/font.cpp
+++ b/src/font.cpp
@@ -149,7 +149,7 @@ FontTypeIndex FontType_RegisterFont(pk_cstr title, AssetHandle fontTextureHandle
imageCreateInfo.extent.depth = 1;
imageCreateInfo.mipLevels = 1;
imageCreateInfo.arrayLayers = 1;
- imageCreateInfo.samples = renderSampleCount;
+ imageCreateInfo.samples = global_sample_count;
imageCreateInfo.tiling = VK_IMAGE_TILING_OPTIMAL;
imageCreateInfo.usage = VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SAMPLED_BIT;
imageCreateInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
@@ -547,7 +547,7 @@ FontTypeIndex FontType_RegisterFont(pk_cstr title, AssetHandle fontTextureHandle
}
VkDescriptorImageInfo textureDescriptorInfo;
- textureDescriptorInfo.sampler = pkePipelines.vkSampler_Texture;
+ textureDescriptorInfo.sampler = global_sampler;
textureDescriptorInfo.imageView = ft->textureImageView;
textureDescriptorInfo.imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;