mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-16 00:08:15 +00:00
Avoid GRAPHICS_API_OPENGL_*
defines
Those defines are only used inside `rlgl` module
This commit is contained in:
@@ -2223,7 +2223,8 @@ VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device)
|
|||||||
{
|
{
|
||||||
VrStereoConfig config = { 0 };
|
VrStereoConfig config = { 0 };
|
||||||
|
|
||||||
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
|
if ((rlGetVersion() == OPENGL_33) || (rlGetVersion() == OPENGL_ES_20))
|
||||||
|
{
|
||||||
// Compute aspect ratio
|
// Compute aspect ratio
|
||||||
float aspect = ((float)device.hResolution*0.5f)/(float)device.vResolution;
|
float aspect = ((float)device.hResolution*0.5f)/(float)device.vResolution;
|
||||||
|
|
||||||
@@ -2285,9 +2286,8 @@ VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device)
|
|||||||
config.eyeViewportLeft[2] = device.hResolution/2;
|
config.eyeViewportLeft[2] = device.hResolution/2;
|
||||||
config.eyeViewportLeft[3] = device.vResolution;
|
config.eyeViewportLeft[3] = device.vResolution;
|
||||||
*/
|
*/
|
||||||
#else
|
}
|
||||||
TRACELOG(LOG_WARNING, "RLGL: VR Simulator not supported on OpenGL 1.1");
|
else TRACELOG(LOG_WARNING, "RLGL: VR Simulator not supported on OpenGL 1.1");
|
||||||
#endif
|
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user