updates
This commit is contained in:
+1
-8
@@ -167,14 +167,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
int height = HIWORD(lParam);
|
||||
|
||||
wiRenderer::GetDevice()->SetResolution(width, height);
|
||||
|
||||
wiSceneSystem::Scene& scene = wiRenderer::GetScene();
|
||||
|
||||
wiSceneSystem::CameraComponent* camera = scene.cameras.GetComponent(wiRenderer::getCameraID());
|
||||
if (camera != nullptr)
|
||||
{
|
||||
camera->CreatePerspective((float)wiRenderer::GetInternalResolution().x, (float)wiRenderer::GetInternalResolution().y, 0.1f, 800);
|
||||
}
|
||||
wiRenderer::getCamera()->CreatePerspective((float)wiRenderer::GetInternalResolution().x, (float)wiRenderer::GetInternalResolution().y, 0.1f, 800);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user