Skip to content

Commit

Permalink
- fixed: Vulkan did not define NPOT_EMULATION for its fragment shader.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Apr 8, 2021
1 parent 8cc3a81 commit e0ee3a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/common/rendering/vulkan/shaders/vk_shader.cpp
Expand Up @@ -296,6 +296,9 @@ std::unique_ptr<VulkanShader> VkShaderManager::LoadFragShader(FString shadername
code << defines;
code << "\n$placeholder$"; // here the code can later add more needed #defines.
code << "\n#define MAX_STREAM_DATA " << std::to_string(MAX_STREAM_DATA).c_str() << "\n";
#ifdef NPOT_EMULATION
code << "#define NPOT_EMULATION\n";
#endif
code << shaderBindings;
FString placeholder = "\n";

Expand Down

0 comments on commit e0ee3a6

Please sign in to comment.