File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
15081507extern 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 ();
Original file line number Diff line number Diff 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
296295namespace graphics {
297296namespace vulkan {
@@ -319,9 +318,9 @@ void vulkan_zbias(int bias)
319318int 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}
You can’t perform that action at this time.
0 commit comments