Fix Zephyron commits
This commit is contained in:
parent
4fde6e181e
commit
386e749d8d
2 changed files with 4 additions and 4 deletions
|
@ -116,9 +116,9 @@ vk::Image TextureManager::LoadTexture(const std::string& texture_path) {
|
||||||
|
|
||||||
vk::Image TextureManager::CreateDefaultTexture() {
|
vk::Image TextureManager::CreateDefaultTexture() {
|
||||||
// Create a small default texture (1x1 pixel) to use as a fallback
|
// Create a small default texture (1x1 pixel) to use as a fallback
|
||||||
const VkExtent2D extent{1, 1};
|
// const VkExtent2D extent{1, 1};
|
||||||
|
|
||||||
// Create image
|
/* // Create image
|
||||||
const VkImageCreateInfo image_ci{
|
const VkImageCreateInfo image_ci{
|
||||||
.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
|
.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
|
||||||
.pNext = nullptr,
|
.pNext = nullptr,
|
||||||
|
@ -135,7 +135,7 @@ vk::Image TextureManager::CreateDefaultTexture() {
|
||||||
.queueFamilyIndexCount = 0,
|
.queueFamilyIndexCount = 0,
|
||||||
.pQueueFamilyIndices = nullptr,
|
.pQueueFamilyIndices = nullptr,
|
||||||
.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED,
|
.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED,
|
||||||
};
|
}; */
|
||||||
|
|
||||||
// TODO: create an actual VkImage [ZEP]
|
// TODO: create an actual VkImage [ZEP]
|
||||||
LOG_INFO(Render_Vulkan, "Created default fallback texture");
|
LOG_INFO(Render_Vulkan, "Created default fallback texture");
|
||||||
|
|
|
@ -205,7 +205,7 @@ void FaultManagedAllocator::ExceptionHandlerThread() {
|
||||||
|
|
||||||
void FaultManagedAllocator::Initialize(void* base, size_t size) {
|
void FaultManagedAllocator::Initialize(void* base, size_t size) {
|
||||||
#if defined(__linux__) || defined(__ANDROID__)
|
#if defined(__linux__) || defined(__ANDROID__)
|
||||||
uffd = syscall(SYS_userfaultfd, O_CLOEXEC | O_NONBLOCK);
|
uffd = static_cast<int>(syscall(SYS_userfaultfd, O_CLOEXEC | O_NONBLOCK));
|
||||||
if (uffd < 0) {
|
if (uffd < 0) {
|
||||||
LOG_ERROR(Render_Vulkan, "Failed to create userfaultfd, fault handling disabled");
|
LOG_ERROR(Render_Vulkan, "Failed to create userfaultfd, fault handling disabled");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue