Skip to content

Commit f0efb8b

Browse files
committed
fixup: use our own
1 parent 08a199d commit f0efb8b

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

code/graphics/vulkan/VulkanDraw.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,8 +1501,7 @@ void VulkanDrawManager::drawSphere(material* material_def)
15011501
} // namespace vulkan
15021502
} // namespace graphics
15031503

1504-
// GL_alpha_threshold is defined in gropengl.cpp
1505-
extern float GL_alpha_threshold;
1504+
extern float VK_alpha_threshold;
15061505

15071506
// PostProcessing_override is defined in globalincs/systemvars.cpp
15081507
extern bool PostProcessing_override;
@@ -1556,7 +1555,7 @@ void vulkan_set_default_material_uniforms(material* material_info)
15561555
}
15571556

15581557
// Alpha threshold
1559-
data->alphaThreshold = GL_alpha_threshold;
1558+
data->alphaThreshold = VK_alpha_threshold;
15601559

15611560
// Color from material
15621561
vec4 clr = material_info->get_color();

code/graphics/vulkan/VulkanState.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,7 @@ void VulkanStateTracker::applyDynamicState()
290290
} // namespace vulkan
291291
} // namespace graphics
292292

293-
// GL_alpha_threshold is defined in gropengl.cpp
294-
extern float GL_alpha_threshold;
293+
float VK_alpha_threshold = 0.0f;
295294

296295
namespace graphics {
297296
namespace vulkan {
@@ -319,9 +318,9 @@ void vulkan_zbias(int bias)
319318
int vulkan_alpha_mask_set(int mode, float alpha)
320319
{
321320
if (mode) {
322-
GL_alpha_threshold = alpha;
321+
VK_alpha_threshold = alpha;
323322
} else {
324-
GL_alpha_threshold = 0.0f;
323+
VK_alpha_threshold = 0.0f;
325324
}
326325
return mode;
327326
}

0 commit comments

Comments
 (0)