Fix desktop driver crash when window isn't open;

This commit is contained in:
bjorn 2022-09-10 10:58:11 -07:00
parent 931ffea17b
commit 7e1d9f1dd2
1 changed files with 4 additions and 0 deletions

View File

@ -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);