Don't apply sRGB default framebuffer option in web builds
All checks were successful
Run tests / Run tests (push) Successful in 7m6s
All checks were successful
Run tests / Run tests (push) Successful in 7m6s
This commit is contained in:
parent
793f83f666
commit
d4abc645f4
1 changed files with 2 additions and 1 deletions
|
|
@ -84,9 +84,10 @@ namespace psemek::sdl2
|
|||
SDL_GL_MakeCurrent(window_, gl_context_);
|
||||
|
||||
gfx::init();
|
||||
|
||||
#if !defined(__EMSCRIPTEN__)
|
||||
if (options.srgb)
|
||||
gl::Enable(gl::FRAMEBUFFER_SRGB);
|
||||
#endif
|
||||
#elif defined(PSEMEK_GRAPHICS_API_WEBGPU)
|
||||
wgpu::setup_logging(log::level::error);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue