diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-08-27 19:33:45 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-08-27 19:33:45 +0000 |
| commit | 49be75e82241dbd5aa8959dcc4d3ba39a8a7a28c (patch) | |
| tree | e6a8c4e19da3cf57bbafeb09740f1ba9aa64dae7 /Graphics/GraphicsEngineOpenGL | |
| parent | Implemented duration query in D3D12 (diff) | |
| download | DiligentCore-49be75e82241dbd5aa8959dcc4d3ba39a8a7a28c.tar.gz DiligentCore-49be75e82241dbd5aa8959dcc4d3ba39a8a7a28c.zip | |
Implemented duration queries in Vulkan
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp index 7612287b..c1f038bf 100644 --- a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp @@ -1377,15 +1377,19 @@ void DeviceContextGLImpl::EndQuery(IQuery* pQuery) DEV_CHECK_GL_ERROR("glQueryCounter failed"); } else +#endif { LOG_ERROR_MESSAGE_ONCE("Timer queries are not supported by this device"); } -#endif break; case QUERY_TYPE_DURATION: +#if GL_TIME_ELAPSED glEndQuery(GL_TIME_ELAPSED); DEV_CHECK_GL_ERROR("Failed to end GL_TIME_ELAPSED query"); +#else + LOG_ERROR_MESSAGE_ONCE("Duration queries are not supported by this device"); +#endif break; default: |
