mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Check if glfwRequestWindowAttention() is available.
This commit is contained in:
parent
0f025ab604
commit
55f2da581a
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user