openvr: Fix stereo Canvas dimensions mismatch;
(The width is automatically doubled when stereo now)
@@ -524,7 +524,7 @@ static void openvr_renderTo(void (*callback)(void*), void* userdata) {
uint32_t width, height;
state.system->GetRecommendedRenderTargetSize(&width, &height);
CanvasFlags flags = { .depth = { true, false, FORMAT_D24S8 }, .stereo = true, .mipmaps = true, .msaa = state.msaa };
- state.canvas = lovrCanvasCreate(width * 2, height, flags);
+ state.canvas = lovrCanvasCreate(width, height, flags);
Texture* texture = lovrTextureCreate(TEXTURE_2D, NULL, 0, true, true, state.msaa);
lovrTextureAllocate(texture, width * 2, height, 1, FORMAT_RGBA);
lovrTextureSetFilter(texture, lovrGraphicsGetDefaultFilter());
