2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 11:47:43 +00:00

OpenGL enum change; Metal <10.11 fixes

This commit is contained in:
Jack Andersen
2016-08-23 18:35:35 -10:00
parent 92bb6fcb55
commit f95d6c8ada
12 changed files with 13 additions and 13 deletions

View File

@@ -25,7 +25,7 @@ void CLineRendererShaders::Initialize()
{
switch (ctx.platform())
{
case boo::IGraphicsDataFactory::Platform::OGL:
case boo::IGraphicsDataFactory::Platform::OpenGL:
m_bindFactory.reset(Initialize(static_cast<boo::GLDataFactory::Context&>(ctx)));
break;
#if _WIN32

View File

@@ -10,7 +10,7 @@ CModelShaders::GetShaderExtensions(boo::IGraphicsDataFactory::Platform plat)
{
switch (plat)
{
case boo::IGraphicsDataFactory::Platform::OGL:
case boo::IGraphicsDataFactory::Platform::OpenGL:
case boo::IGraphicsDataFactory::Platform::Vulkan:
return GetShaderExtensionsGLSL(plat);
#if _WIN32

View File

@@ -118,7 +118,7 @@ void CSpaceWarpFilter::draw(const zeus::CVector3f& pt)
m_uniform.m_matrix[1][1] = clipRect.x10_height / vp.y;
m_uniform.m_matrix[3][0] = pt.x + (1.f / vp.x);
m_uniform.m_matrix[3][1] = pt.y + (1.f / vp.y);
if (CGraphics::g_BooPlatform == boo::IGraphicsDataFactory::Platform::OGL)
if (CGraphics::g_BooPlatform == boo::IGraphicsDataFactory::Platform::OpenGL)
m_uniform.m_matrix[3][2] = pt.z * 2.f - 1.f;
else
m_uniform.m_matrix[3][2] = pt.z;

View File

@@ -41,7 +41,7 @@ public:
{
switch (ctx.platform())
{
case boo::IGraphicsDataFactory::Platform::OGL:
case boo::IGraphicsDataFactory::Platform::OpenGL:
m_bindFactory.reset(FilterImp::Initialize(static_cast<boo::GLDataFactory::Context&>(ctx),
m_alphaBlendPipeline, m_additiveAlphaPipeline, m_colorMultiplyPipeline));
break;

View File

@@ -38,7 +38,7 @@ public:
{
switch (ctx.platform())
{
case boo::IGraphicsDataFactory::Platform::OGL:
case boo::IGraphicsDataFactory::Platform::OpenGL:
m_bindFactory.reset(FilterImp::Initialize(static_cast<boo::GLDataFactory::Context&>(ctx),
m_pipeline));
break;