Эх сурвалжийг харах

maxwell_to_vk: Silence -Wextra warnings about using different enum types

ReinUsesLisp 5 жил өмнө
parent
commit
ad48259d7e

+ 1 - 1
src/video_core/renderer_vulkan/maxwell_to_vk.cpp

@@ -671,7 +671,7 @@ VkFrontFace FrontFace(Maxwell::FrontFace front_face) {
     return {};
     return {};
 }
 }
 
 
-VkCullModeFlags CullFace(Maxwell::CullFace cull_face) {
+VkCullModeFlagBits CullFace(Maxwell::CullFace cull_face) {
     switch (cull_face) {
     switch (cull_face) {
     case Maxwell::CullFace::Front:
     case Maxwell::CullFace::Front:
         return VK_CULL_MODE_FRONT_BIT;
         return VK_CULL_MODE_FRONT_BIT;

+ 1 - 1
src/video_core/renderer_vulkan/maxwell_to_vk.h

@@ -55,7 +55,7 @@ VkBlendFactor BlendFactor(Maxwell::Blend::Factor factor);
 
 
 VkFrontFace FrontFace(Maxwell::FrontFace front_face);
 VkFrontFace FrontFace(Maxwell::FrontFace front_face);
 
 
-VkCullModeFlags CullFace(Maxwell::CullFace cull_face);
+VkCullModeFlagBits CullFace(Maxwell::CullFace cull_face);
 
 
 VkComponentSwizzle SwizzleSource(Tegra::Texture::SwizzleSource swizzle);
 VkComponentSwizzle SwizzleSource(Tegra::Texture::SwizzleSource swizzle);