mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-08 23:23:38 +00:00
Fix OpenVR texture reset yet again;
This commit is contained in:
parent
2cc360db11
commit
94af335225
|
@ -595,9 +595,10 @@ void lovrHeadsetRenderTo(headsetRenderCallback callback, void* userdata) {
|
||||||
Texture_t eyeTexture = { (void*) texture, textureType, EColorSpace_ColorSpace_Gamma };
|
Texture_t eyeTexture = { (void*) texture, textureType, EColorSpace_ColorSpace_Gamma };
|
||||||
EVRSubmitFlags flags = EVRSubmitFlags_Submit_Default;
|
EVRSubmitFlags flags = EVRSubmitFlags_Submit_Default;
|
||||||
state.compositor->Submit(vrEye, &eyeTexture, NULL, flags);
|
state.compositor->Submit(vrEye, &eyeTexture, NULL, flags);
|
||||||
}
|
|
||||||
|
|
||||||
|
// Reset to the correct texture
|
||||||
glBindTexture(GL_TEXTURE_2D, oldTexture->id);
|
glBindTexture(GL_TEXTURE_2D, oldTexture->id);
|
||||||
|
}
|
||||||
|
|
||||||
state.isRendering = 0;
|
state.isRendering = 0;
|
||||||
lovrGraphicsPopCanvas();
|
lovrGraphicsPopCanvas();
|
||||||
|
|
Loading…
Reference in a new issue