Use separate assertion for the window and the renderer