From 3af33b26ac7990dac8b7dce3fd9d877ee955b3ab Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 9 Feb 2015 01:09:38 -0800 Subject: [PATCH] libobs-d3d11: Use integer type with switch DXGI_FORMAT has too many values we don't need/use, so the value for this switch should be an integer instead of an enum to prevent warnings. --- libobs-d3d11/d3d11-subsystem.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs-d3d11/d3d11-subsystem.hpp b/libobs-d3d11/d3d11-subsystem.hpp index a1f073400..e23f8f03d 100644 --- a/libobs-d3d11/d3d11-subsystem.hpp +++ b/libobs-d3d11/d3d11-subsystem.hpp @@ -84,7 +84,7 @@ static inline DXGI_FORMAT ConvertGSTextureFormat(gs_color_format format) static inline gs_color_format ConvertDXGITextureFormat(DXGI_FORMAT format) { - switch (format) { + switch ((unsigned long)format) { case DXGI_FORMAT_A8_UNORM: return GS_A8; case DXGI_FORMAT_R8_UNORM: return GS_R8; case DXGI_FORMAT_R8G8B8A8_UNORM: return GS_RGBA;