Fix desktop driver crash when window isn't open;
@@ -197,6 +197,10 @@ static Texture* desktop_getTexture(void) {
static Pass* desktop_getPass(void) {
Pass* pass = lovrGraphicsGetWindowPass();
+ if (!pass) {
+ return pass;
+ }
+
float position[4], orientation[4];
desktop_getViewPose(0, position, orientation);
