Compare commits
3 commits
a38527a322
...
d4abc645f4
| Author | SHA1 | Date | |
|---|---|---|---|
| d4abc645f4 | |||
| 793f83f666 | |||
| c5b245eef8 |
4 changed files with 9 additions and 1 deletions
|
|
@ -897,6 +897,7 @@ precision highp int;
|
|||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
precision highp usampler2D;
|
||||
precision highp sampler2DShadow;
|
||||
)";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1269,6 +1269,7 @@ precision highp int;
|
|||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
precision highp usampler2D;
|
||||
precision highp sampler2DShadow;
|
||||
)";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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