diff options
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp index c1f038bf..49f78cb3 100644 --- a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp @@ -1332,8 +1332,12 @@ void DeviceContextGLImpl::BeginQuery(IQuery* pQuery) break; case QUERY_TYPE_DURATION: +#if GL_TIME_ELAPSED glBeginQuery(GL_TIME_ELAPSED, glQuery); DEV_CHECK_GL_ERROR("Failed to begin GL_TIME_ELAPSED query"); +#else + LOG_ERROR_MESSAGE_ONCE("Duration queries are not supported by this device"); +#endif break; default: |
