mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +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()
|
void Backend::Attention()
|
||||||
{
|
{
|
||||||
|
#if GLFW_VERSION_MAJOR > 3 || ( GLFW_VERSION_MAJOR == 3 && GLFW_VERSION_MINOR >= 3 )
|
||||||
if( !glfwGetWindowAttrib( s_window, GLFW_FOCUSED ) )
|
if( !glfwGetWindowAttrib( s_window, GLFW_FOCUSED ) )
|
||||||
{
|
{
|
||||||
glfwRequestWindowAttention( s_window );
|
glfwRequestWindowAttention( s_window );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Backend::NewFrame( int& w, int& h )
|
void Backend::NewFrame( int& w, int& h )
|
||||||
|
Loading…
Reference in New Issue
Block a user