Minor fixes
This commit is contained in:
parent
e9f0b01e02
commit
494801282d
|
|
@ -148,6 +148,8 @@ typedef void (GL_APIENTRYP PFNGLSPECIALIZESHADERARBPROC) (GLuint shader, const G
|
||||||
cb(glVertexAttribIPointer, PFNGLVERTEXATTRIBIPOINTERPROC) \
|
cb(glVertexAttribIPointer, PFNGLVERTEXATTRIBIPOINTERPROC) \
|
||||||
cb(glViewport, PFNGLVIEWPORTPROC) \
|
cb(glViewport, PFNGLVIEWPORTPROC) \
|
||||||
\
|
\
|
||||||
|
extCb(glObjectLabel, PFNGLOBJECTLABELPROC) \
|
||||||
|
\
|
||||||
extCb(glDebugMessageCallback, PFNGLDEBUGMESSAGECALLBACKPROC) \
|
extCb(glDebugMessageCallback, PFNGLDEBUGMESSAGECALLBACKPROC) \
|
||||||
\
|
\
|
||||||
extCb(glSpecializeShaderARB, PFNGLSPECIALIZESHADERARBPROC) \
|
extCb(glSpecializeShaderARB, PFNGLSPECIALIZESHADERARBPROC) \
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// This file is part of the "Nazara Engine - Vulkan Renderer"
|
// This file is part of the "Nazara Engine - Vulkan Renderer"
|
||||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||||
|
|
||||||
#include <Nazara/VulkanRenderer/VulkanShaderBinding.hpp>
|
#include <Nazara/VulkanRenderer/VulkanTextureSampler.hpp>
|
||||||
#include <Nazara/VulkanRenderer/Debug.hpp>
|
#include <Nazara/VulkanRenderer/Debug.hpp>
|
||||||
|
|
||||||
namespace Nz
|
namespace Nz
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ namespace Nz
|
||||||
createInfo.borderColor = VK_BORDER_COLOR_INT_OPAQUE_BLACK;
|
createInfo.borderColor = VK_BORDER_COLOR_INT_OPAQUE_BLACK;
|
||||||
createInfo.mipmapMode = ToVulkan(samplerInfo.mipmapMode);
|
createInfo.mipmapMode = ToVulkan(samplerInfo.mipmapMode);
|
||||||
|
|
||||||
if (samplerInfo.anisotropyLevel > 0.f)
|
if (samplerInfo.anisotropyLevel > 1.f)
|
||||||
{
|
{
|
||||||
createInfo.anisotropyEnable = VK_TRUE;
|
createInfo.anisotropyEnable = VK_TRUE;
|
||||||
createInfo.maxAnisotropy = samplerInfo.anisotropyLevel;
|
createInfo.maxAnisotropy = samplerInfo.anisotropyLevel;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue