Fix OpenVR texture reset yet again;

This commit is contained in:
bjorn 2017-02-26 16:33:20 -08:00
parent 2cc360db11
commit 94af335225
1 changed files with 3 additions and 2 deletions

View File

@ -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();