diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-05-09 06:06:36 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-05-09 06:06:36 +0000 |
| commit | 486a4845d64db10b1af1e642fbd313b2cb3e3c58 (patch) | |
| tree | d7b20cc248437108e52279242708d09181962485 /unityplugin/GhostCubePlugin/PluginSource | |
| parent | Updated samples (fixed Linux build error) (diff) | |
| download | DiligentEngine-486a4845d64db10b1af1e642fbd313b2cb3e3c58.tar.gz DiligentEngine-486a4845d64db10b1af1e642fbd313b2cb3e3c58.zip | |
Updated core (API version 240058)
Diffstat (limited to 'unityplugin/GhostCubePlugin/PluginSource')
| -rw-r--r-- | unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_OpenGLCoreES.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_OpenGLCoreES.cpp b/unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_OpenGLCoreES.cpp index c51b5d2..e17a9f5 100644 --- a/unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_OpenGLCoreES.cpp +++ b/unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_OpenGLCoreES.cpp @@ -85,7 +85,7 @@ void RenderAPI_OpenGLCoreES::CreateRenderTargetAndDepthBuffer() RenderTargetDesc.Height = 1024; RenderTargetDesc.Format = TEX_FORMAT_RGBA8_UNORM_SRGB; #endif - pDeviceGL->CreateTextureFromGLHandle(m_GLRenderTargetHandle, RenderTargetDesc, RESOURCE_STATE_UNKNOWN, &pRenderTarget); + pDeviceGL->CreateTextureFromGLHandle(m_GLRenderTargetHandle, 0, RenderTargetDesc, RESOURCE_STATE_UNKNOWN, &pRenderTarget); RefCntAutoPtr<ITexture> pDepthBuffer; TextureDesc DepthBufferDesc; @@ -100,7 +100,7 @@ void RenderAPI_OpenGLCoreES::CreateRenderTargetAndDepthBuffer() DepthBufferDesc.Height = 1024; DepthBufferDesc.Format = TEX_FORMAT_D32_FLOAT; #endif - pDeviceGL->CreateTextureFromGLHandle(m_GLDepthTextureHandle, DepthBufferDesc, RESOURCE_STATE_UNKNOWN, &pDepthBuffer); + pDeviceGL->CreateTextureFromGLHandle(m_GLDepthTextureHandle, 0, DepthBufferDesc, RESOURCE_STATE_UNKNOWN, &pDepthBuffer); CreateTextureViews(pRenderTarget, pDepthBuffer); } |
