src/App.cpp
// returns the maximum numbers of MSXAA samples the active OpenGL context supports
returns the maximum numbers of MSXAA samples the active OpenGL context supports
returns the maximum numbers of MSXAA samples the active OpenGL context supports
static GLint GetOpenGLMaxMSXAASamples(sdl::GLContext const&)
{
    GLint v = 1;
    glGetIntegerv(GL_MAX_SAMPLES, &v);
    if (v < 4)
    {
        static bool warnOnce = [&]()
        {
            osc::log::warn("the current OpenGl backend only supports %i samples. Technically, this is invalid (4 *should* be the minimum)", v);
            return true;
        }();
        (void)warnOnce;
    }
    OSC_ASSERT(v < 1<<16 && "number of samples is greater than the maximum supported by the application");
    return v;
}
static GLint GetOpenGLMaxMSXAASamples ( sdl :: GLContext const & ) { GLint v = 1 ; glGetIntegerv ( GL_MAX_SAMPLES , & v ) ; if ( v < 4 ) { static bool warnOnce = [ & ] ( ) { osc :: log :: warn ( " " , v ) ; return true ; } ( ) ; ( void ) warnOnce ; } OSC_ASSERT ( v < 1 << 16 && " " ) ; return v ; }
returns the maximum numbers of MSXAA samples the active OpenGL context supports
returns the maximum numbers of MSXAA samples the active OpenGL context supports
// OpenGL spec: "the value must be at least 4" // see: https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glGet.xhtml