mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-03-10 03:02:21 +00:00
Fix off-by-one in Vulkan multisample sample count selection
This commit is contained in:
parent
a8acbced42
commit
0dfa632d29
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ VkSampleCountFlagBits VkRenderBuffers::GetBestSampleCount()
|
|||
int samples = 1;
|
||||
VkSampleCountFlags bit = VK_SAMPLE_COUNT_1_BIT;
|
||||
VkSampleCountFlags best = bit;
|
||||
while (samples < requestedSamples)
|
||||
while (samples <= requestedSamples)
|
||||
{
|
||||
if (deviceSampleCounts & bit)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue