vk: Fix shader interpreter inputs when textures are not used
This commit is contained in:
@@ -275,6 +275,8 @@ namespace vk
|
|||||||
in.name = "FragmentInstructionBlock";
|
in.name = "FragmentInstructionBlock";
|
||||||
inputs.push_back(in);
|
inputs.push_back(in);
|
||||||
|
|
||||||
|
if (compiler_options & program_common::interpreter::COMPILER_OPT_ENABLE_TEXTURES)
|
||||||
|
{
|
||||||
for (int i = 0, location = m_fragment_textures_start; i < 4; ++i, ++location)
|
for (int i = 0, location = m_fragment_textures_start; i < 4; ++i, ++location)
|
||||||
{
|
{
|
||||||
in.location = location;
|
in.location = location;
|
||||||
@@ -282,6 +284,7 @@ namespace vk
|
|||||||
in.type = glsl::input_type_texture;
|
in.type = glsl::input_type_texture;
|
||||||
inputs.push_back(in);
|
inputs.push_back(in);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
vk_prog->SetInputs(inputs);
|
vk_prog->SetInputs(inputs);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user