From f6fca8225d98f79ee245596e1ff4b1b2309cdb12 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 30 Jan 2025 16:25:49 -0500 Subject: pke: consolidate duplicated vulkan sampler --- src/font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/font.cpp') 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; -- cgit v1.2.3