summaryrefslogtreecommitdiff
path: root/indra/llwindow/llsdl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llwindow/llsdl.cpp')
-rw-r--r--indra/llwindow/llsdl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llwindow/llsdl.cpp b/indra/llwindow/llsdl.cpp
index c97356ee80..d0a7552647 100644
--- a/indra/llwindow/llsdl.cpp
+++ b/indra/llwindow/llsdl.cpp
@@ -64,10 +64,12 @@ void sdl_logger(void *userdata, int category, SDL_LogPriority priority, const ch
void init_sdl(const std::string& app_name)
{
+#ifndef LL_SDL_APP
if (!gSDLMainHandled)
{
SDL_SetMainReady();
}
+#endif
SDL_SetLogOutputFunction(&sdl_logger, nullptr);