Commit 06c36b5a authored by Philip Trettner's avatar Philip Trettner

made glfwapp a tad more generic

parent cda371b2
......@@ -145,13 +145,11 @@ void GlfwApp::renderPass(const pipeline::RenderPass &pass, float elapsedSeconds)
void GlfwApp::onResize(int w, int h)
{
if (mUseDefaultRendering)
{
if (mCamera)
mCamera->resize(w, h);
if (mPipeline)
mPipeline->resize(w, h);
}
if (mCamera)
mCamera->resize(w, h);
if (mPipeline)
mPipeline->resize(w, h);
}
void GlfwApp::onClose() {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment