mirror of https://github.com/bjornbytes/lovr.git
Fix lovr.graphics.getWindowPass when there's no window;
This commit is contained in:
parent
f90cd237ca
commit
a75086d0e4
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue