Fix lovr.graphics.getWindowPass when there's no window;

This commit is contained in:
bjorn 2023-05-04 18:27:02 -07:00
parent f90cd237ca
commit a75086d0e4
1 changed files with 1 additions and 1 deletions

View File

@ -1815,7 +1815,7 @@ static Material* lovrTextureGetMaterial(Texture* texture) {
}
Texture* lovrGraphicsGetWindowTexture(void) {
if (!state.window->gpu) {
if (state.window && !state.window->gpu) {
beginFrame();
state.window->gpu = gpu_surface_acquire();