mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-04 21:43:34 +00:00
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) {
|
Texture* lovrGraphicsGetWindowTexture(void) {
|
||||||
if (!state.window->gpu) {
|
if (state.window && !state.window->gpu) {
|
||||||
beginFrame();
|
beginFrame();
|
||||||
|
|
||||||
state.window->gpu = gpu_surface_acquire();
|
state.window->gpu = gpu_surface_acquire();
|
||||||
|
|
Loading…
Reference in a new issue