Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-10-15 02:15:22 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-10-15 02:15:22 +0300
commit55f2da581aa1601a9edc31023cd565a4de043adc (patch)
tree12897fa2f3be8df12c2a190f4c3c76bf1c1d7b5b
parent0f025ab60440dd370be13a1acddc1dbf913c0335 (diff)
Check if glfwRequestWindowAttention() is available.
-rw-r--r--profiler/src/BackendGlfw.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/profiler/src/BackendGlfw.cpp b/profiler/src/BackendGlfw.cpp
index cd6b25fa..1d9b01a9 100644
--- a/profiler/src/BackendGlfw.cpp
+++ b/profiler/src/BackendGlfw.cpp
@@ -153,10 +153,12 @@ void Backend::Run()
void Backend::Attention()
{
+#if GLFW_VERSION_MAJOR > 3 || ( GLFW_VERSION_MAJOR == 3 && GLFW_VERSION_MINOR >= 3 )
if( !glfwGetWindowAttrib( s_window, GLFW_FOCUSED ) )
{
glfwRequestWindowAttention( s_window );
}
+#endif
}
void Backend::NewFrame( int& w, int& h )