Gl_ansio | [work]

// Determine source format from channel count if user didn't set it. GLenum srcFormat = desc.format; if (srcFormat == GL_RGBA && nChannels == 3) srcFormat = GL_RGB; else if (srcFormat == GL_RGBA && nChannels == 4) srcFormat = GL_RGBA; else if (srcFormat == GL_RGB && nChannels == 1) srcFormat = GL_RED;

#endif // GL_ANSIO_HAS_COROUTINES

~GLContext() // Do NOT destroy the window here – caller owns it. // Just detach the context from the thread. glfwMakeContextCurrent(nullptr); gl_ansio

// Render... glClearColor(0.1f, 0.12f, 0.15f, 1.0f); glClear(GL_COLOR_BUFFER_BIT); // Determine source format from channel count if