diff --git a/examples/07-callback/callback.cpp b/examples/07-callback/callback.cpp index 62eac1ba4..cd816dba2 100644 --- a/examples/07-callback/callback.cpp +++ b/examples/07-callback/callback.cpp @@ -349,9 +349,6 @@ public: // Enable debug text. bgfx::setDebug(m_debug); - // Set view 0 default viewport. - bgfx::setViewRect(0, 0, 0, 1280, 720); - // Set view 0 clear state. bgfx::setViewClear(0 , BGFX_CLEAR_COLOR|BGFX_CLEAR_DEPTH @@ -430,6 +427,9 @@ public: if (!exit) { + // Set view 0 default viewport. + bgfx::setViewRect(0, 0, 0, bgfx::BackbufferRatio::Equal); + // This dummy draw call is here to make sure that view 0 is cleared // if no other draw calls are submitted to view 0. bgfx::touch(0);