From a85347704ba95234da16298f28ba2b431c4f569c Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 8 Sep 2019 18:04:58 -0700 Subject: Added IRenderDevice::IdleGPU() method (updated API version to 240029) --- Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h | 2 ++ Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'Graphics/GraphicsEngineOpenGL') 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(); +} + } -- cgit v1.2.3