cleanup: only build some files on WIN32 and compile EGL only if needed

This commit is contained in:
Loïc Blot
2023-08-01 20:53:25 +02:00
committed by GitHub
parent c311d01c07
commit d98dc90b38
11 changed files with 42 additions and 34 deletions

View File

@ -3391,7 +3391,7 @@ inline void COpenGLExtensionHandler::extGlGenerateTextureMipmap(GLuint texture,
inline void COpenGLExtensionHandler::extGlSwapInterval(int interval)
{
// we have wglext, so try to use that
#if defined(_IRR_WINDOWS_API_) && defined(_IRR_COMPILE_WITH_WINDOWS_DEVICE_)
#if defined(_IRR_WINDOWS_API_)
#ifdef WGL_EXT_swap_control
if (pWglSwapIntervalEXT)
pWglSwapIntervalEXT(interval);