Compare commits

...

3 commits

Author SHA1 Message Date
d4abc645f4 Don't apply sRGB default framebuffer option in web builds
All checks were successful
Run tests / Run tests (push) Successful in 7m6s
2026-07-24 02:34:00 +03:00
793f83f666 Flush each log message in web builds 2026-07-24 02:33:40 +03:00
c5b245eef8 Add sampler2DShadow to gles shader prefix 2026-07-24 02:33:26 +03:00
4 changed files with 9 additions and 1 deletions

View file

@ -897,6 +897,7 @@ precision highp int;
precision highp float;
precision highp sampler2D;
precision highp usampler2D;
precision highp sampler2DShadow;
)";
}

View file

@ -1269,6 +1269,7 @@ precision highp int;
precision highp float;
precision highp sampler2D;
precision highp usampler2D;
precision highp sampler2DShadow;
)";
}

View file

@ -89,7 +89,12 @@ namespace psemek::log
std::lock_guard lock{sinks_mutex};
for (auto const & sink : sinks)
{
sink->put_message(msg);
#ifdef __EMSCRIPTEN__
sink->flush();
#endif
}
}
static ::tm safe_localtime(std::time_t const & time)

View file

@ -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);