From 94af3352255f250c6695a276dfb470c45955c6e4 Mon Sep 17 00:00:00 2001 From: bjorn Date: Sun, 26 Feb 2017 16:33:20 -0800 Subject: [PATCH] Fix OpenVR texture reset yet again; --- src/headset/vive.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/headset/vive.c b/src/headset/vive.c index 3eecf095..2c15f589 100644 --- a/src/headset/vive.c +++ b/src/headset/vive.c @@ -595,9 +595,10 @@ void lovrHeadsetRenderTo(headsetRenderCallback callback, void* userdata) { Texture_t eyeTexture = { (void*) texture, textureType, EColorSpace_ColorSpace_Gamma }; EVRSubmitFlags flags = EVRSubmitFlags_Submit_Default; state.compositor->Submit(vrEye, &eyeTexture, NULL, flags); - } - glBindTexture(GL_TEXTURE_2D, oldTexture->id); + // Reset to the correct texture + glBindTexture(GL_TEXTURE_2D, oldTexture->id); + } state.isRendering = 0; lovrGraphicsPopCanvas();