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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user