From 366313bfd03c413c60386d51425c34cf9a78afba Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 6 Feb 2019 18:07:34 +0100 Subject: [PATCH] Update rlgl.h --- src/rlgl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rlgl.h b/src/rlgl.h index 979b3a2d..f2762637 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -4372,7 +4372,7 @@ static VrStereoConfig SetStereoConfig(VrDeviceInfo hmd, Shader distortion) // Initialize framebuffer and textures for stereo rendering // NOTE: Screen size should match HMD aspect ratio - config.stereoFbo = rlLoadRenderTexture(GetScreenWidth(), GetScreenHeight(), UNCOMPRESSED_R8G8B8A8, 24, false); + config.stereoFbo = rlLoadRenderTexture(screenWidth, screenHeight, UNCOMPRESSED_R8G8B8A8, 24, false); // Assign distortion shader config.distortionShader = distortion;