1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-03 04:53:35 +00:00

Fix OpenXR usage of setBackground;

This commit is contained in:
bjorn 2022-08-13 21:21:17 -07:00
parent 5799b0effb
commit 6fa8b570da

View file

@ -1821,7 +1821,7 @@ static Pass* openxr_getPass(void) {
uint8_t stencil; uint8_t stencil;
float color[4][4], depth; float color[4][4], depth;
lovrPassGetClear(state.pass, color, &depth, &stencil); lovrPassGetClear(state.pass, color, &depth, &stencil);
lovrGraphicsGetBackground(color[0]); lovrGraphicsGetBackgroundColor(color[0]);
lovrPassSetClear(state.pass, color, depth, stencil); lovrPassSetClear(state.pass, color, depth, stencil);
lovrPassSetTarget(state.pass, &texture, depthTexture); lovrPassSetTarget(state.pass, &texture, depthTexture);
lovrPassReset(state.pass); lovrPassReset(state.pass);