diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-09-09 01:04:58 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-09-09 01:04:58 +0000 |
| commit | a85347704ba95234da16298f28ba2b431c4f569c (patch) | |
| tree | e1ca567d87bd81106731c4b97fa511b55db770af /Graphics/GraphicsEngineOpenGL | |
| parent | Added IDeviceContext::WaitForIdle() method (updated API version to 240028) (diff) | |
| download | DiligentCore-a85347704ba95234da16298f28ba2b431c4f569c.tar.gz DiligentCore-a85347704ba95234da16298f28ba2b431c4f569c.zip | |
Added IRenderDevice::IdleGPU() method (updated API version to 240029)
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h | 2 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h b/Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h index ce3aaee5..f1b84d50 100644 --- a/Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h +++ b/Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h @@ -85,6 +85,8 @@ public: virtual void ReleaseStaleResources(bool ForceRelease = false)override final {} + virtual void IdleGPU()override final; + const GPUInfo& GetGPUInfo(){ return m_GPUInfo; } FBOCache& GetFBOCache(GLContext::NativeGLContextType Context); diff --git a/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp index 4951be30..ecdd36cc 100644 --- a/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp @@ -765,4 +765,9 @@ void RenderDeviceGLImpl::OnDestroyBuffer(IBuffer *pBuffer) VAOCacheIt.second.OnDestroyBuffer(pBuffer); } +void RenderDeviceGLImpl::IdleGPU() +{ + glFinish(); +} + } |
