summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Null/ShaderCache.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2016-07-31 10:38:42 +0200
committerGitHub <noreply@github.com>2016-07-31 10:38:42 +0200
commite281273cd7c7e173b9911ba0b8e01dd809cfd8ea (patch)
treeb70ab77109da2473b23bbe86fc7fc240e2d9a978 /Source/Core/VideoBackends/Null/ShaderCache.cpp
parenta3438f916b8eb2123b8977ac334d104dd2640e5e (diff)
parent14e0b48ae43c3625f8571dec88121c91d575c65c (diff)
Merge pull request #4047 from lioncash/enum-fwd
VideoCommon: Make API_TYPE an enum class
Diffstat (limited to 'Source/Core/VideoBackends/Null/ShaderCache.cpp')
-rw-r--r--Source/Core/VideoBackends/Null/ShaderCache.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Null/ShaderCache.cpp b/Source/Core/VideoBackends/Null/ShaderCache.cpp
index a08ef6952b..629e440763 100644
--- a/Source/Core/VideoBackends/Null/ShaderCache.cpp
+++ b/Source/Core/VideoBackends/Null/ShaderCache.cpp
@@ -6,6 +6,7 @@
#include "VideoCommon/Debugger.h"
#include "VideoCommon/Statistics.h"
+#include "VideoCommon/VideoCommon.h"
namespace Null
{
@@ -34,7 +35,7 @@ void ShaderCache<Uid>::Clear()
template <typename Uid>
bool ShaderCache<Uid>::SetShader(DSTALPHA_MODE dst_alpha_mode, u32 primitive_type)
{
- Uid uid = GetUid(dst_alpha_mode, primitive_type, API_OPENGL);
+ Uid uid = GetUid(dst_alpha_mode, primitive_type, APIType::OpenGL);
// Check if the shader is already set
if (m_last_entry)
@@ -59,7 +60,7 @@ bool ShaderCache<Uid>::SetShader(DSTALPHA_MODE dst_alpha_mode, u32 primitive_typ
}
// Need to compile a new shader
- ShaderCode code = GenerateCode(dst_alpha_mode, API_OPENGL, uid);
+ ShaderCode code = GenerateCode(dst_alpha_mode, APIType::OpenGL, uid);
m_shaders.emplace(uid, code.GetBuffer());
GFX_DEBUGGER_PAUSE_AT(NEXT_PIXEL_SHADER_CHANGE, true);