Avoid GRAPHICS_API_OPENGL_*
defines
Those defines are only used inside `rlgl` module
This commit is contained in:
parent
b28e353626
commit
1c9093fd24
1 changed files with 56 additions and 56 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue