Don't apply sRGB default framebuffer option in web builds
All checks were successful
Run tests / Run tests (push) Successful in 7m6s

This commit is contained in:
Nikita Lisitsa 2026-07-24 02:34:00 +03:00
parent 793f83f666
commit d4abc645f4

View file

@ -84,9 +84,10 @@ namespace psemek::sdl2
SDL_GL_MakeCurrent(window_, gl_context_); SDL_GL_MakeCurrent(window_, gl_context_);
gfx::init(); gfx::init();
#if !defined(__EMSCRIPTEN__)
if (options.srgb) if (options.srgb)
gl::Enable(gl::FRAMEBUFFER_SRGB); gl::Enable(gl::FRAMEBUFFER_SRGB);
#endif
#elif defined(PSEMEK_GRAPHICS_API_WEBGPU) #elif defined(PSEMEK_GRAPHICS_API_WEBGPU)
wgpu::setup_logging(log::level::error); wgpu::setup_logging(log::level::error);