mirror of https://github.com/bjornbytes/lovr.git
Make singlepass detection more readable;
This commit is contained in:
parent
adf5e69ea1
commit
2baa8d03ee
|
@ -999,7 +999,14 @@ void lovrGpuInit(getProcAddressProc getProcAddress) {
|
|||
glEnable(GL_PROGRAM_POINT_SIZE);
|
||||
glEnable(GL_FRAMEBUFFER_SRGB);
|
||||
glGetFloatv(GL_POINT_SIZE_RANGE, state.limits.pointSizes);
|
||||
state.singlepass = (state.features.multiview && GLAD_GL_ES_VERSION_3_0) ? MULTIVIEW : (state.features.instancedStereo ? INSTANCED_STEREO : NONE);
|
||||
|
||||
if (state.features.multiview && GLAD_GL_ES_VERSION_3_0) {
|
||||
state.singlepass = MULTIVIEW;
|
||||
} else if (state.features.instancedStereo) {
|
||||
state.singlepass = INSTANCED_STEREO;
|
||||
} else {
|
||||
state.singlepass = NONE;
|
||||
}
|
||||
#else
|
||||
glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, state.limits.pointSizes);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue