diff options
Diffstat (limited to 'unityplugin')
| -rw-r--r-- | unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_OpenGLCoreES.cpp | 2 | ||||
| -rw-r--r-- | unityplugin/UnityEmulator/src/DiligentGraphicsAdapterGL.cpp | 13 |
2 files changed, 11 insertions, 4 deletions
diff --git a/unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_OpenGLCoreES.cpp b/unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_OpenGLCoreES.cpp index 2a07cc2..b5e1a0c 100644 --- a/unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_OpenGLCoreES.cpp +++ b/unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_OpenGLCoreES.cpp @@ -49,7 +49,7 @@ void RenderAPI_OpenGLCoreES::ProcessDeviceEvent(UnityGfxDeviceEventType type, IU if (type == kUnityGfxDeviceEventInitialize) { auto *pFactoryGL = GetEngineFactoryOpenGL(); - EngineCreationAttribs Attribs; + EngineGLAttribs Attribs; pFactoryGL->AttachToActiveGLContext(Attribs, &m_Device, &m_Context); if (m_Context) { diff --git a/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterGL.cpp b/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterGL.cpp index b9ab052..9a8a164 100644 --- a/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterGL.cpp +++ b/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterGL.cpp @@ -6,17 +6,19 @@ #include "RenderDeviceFactoryOpenGL.h" #include "SwapChainBase.h" #include "DefaultRawMemoryAllocator.h" + #include "UnityGraphicsGL_Impl.h" +#include "SwapChainGL.h" using namespace Diligent; namespace { -class ProxySwapChainGL : public SwapChainBase<ISwapChain> +class ProxySwapChainGL : public SwapChainBase<ISwapChainGL> { public: - using TBase = SwapChainBase<ISwapChain>; + using TBase = SwapChainBase<ISwapChainGL>; ProxySwapChainGL( IReferenceCounters *pRefCounters, IRenderDevice *pDevice, @@ -34,6 +36,11 @@ public: { TBase::Resize(NewWidth, NewHeight, 0); } + + virtual GLuint GetDefaultFBO()const override final + { + return 0; + } }; } @@ -44,7 +51,7 @@ DiligentGraphicsAdapterGL::DiligentGraphicsAdapterGL(const UnityGraphicsGLCoreES auto *UnityGraphicsGLImpl = UnityGraphicsGL.GetGraphicsImpl(); auto *pFactoryGL = GetEngineFactoryOpenGL(); - EngineCreationAttribs Attribs; + EngineGLAttribs Attribs; pFactoryGL->AttachToActiveGLContext(Attribs, &m_pDevice, &m_pDeviceCtx); auto BackBufferGLFormat = UnityGraphicsGLImpl->GetBackBufferFormat(); |
