fix shutdown
This commit is contained in:
@@ -104,18 +104,7 @@ void GfxDevice::init(SDL_Window* window, const std::string& appName, bool vSync)
|
||||
VkPhysicalDeviceProperties props{};
|
||||
vkGetPhysicalDeviceProperties(physicalDevice, &props);
|
||||
|
||||
imageCache.bindlessSetManager.init(device, props.limits.maxSamplerAnisotropy); {
|
||||
// create white texture
|
||||
std::uint32_t pixel = 0xFFFFFFFF;
|
||||
whiteImageId = createImage(
|
||||
{
|
||||
.format = VK_FORMAT_R8G8B8A8_UNORM,
|
||||
.usage = VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT,
|
||||
.extent = VkExtent3D{1, 1, 1},
|
||||
},
|
||||
"white texture",
|
||||
&pixel);
|
||||
}
|
||||
imageCache.bindlessSetManager.init(device, props.limits.maxSamplerAnisotropy);
|
||||
|
||||
swapchain.initSync(device);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user