summaryrefslogtreecommitdiff
path: root/indra/llwindow/llwindowsdl.cpp
AgeCommit message (Collapse)Author
2024-07-06Merge branch 'main' into maint-bErik Kundiman
2024-07-06buffer optimisation llwindowsdl.cpp fixmobserveur
This commit fixes a gSavedSettings variable call
2024-07-06Merge branch 'main' into maint-bErik Kundiman
2024-07-06missing header fix in llwindowsdl.cppmobserveur
there was missing include in llwindowsdl.cpp
2024-07-06Merge branch 'main' into maint-bErik Kundiman
2024-07-05Tuning floater and buffer mapping improvementsmobserveur
This commit adds the tuning floater accessible via the fps button, and improvements to the buffer mapping optimisation modes.
2024-07-01Fix core profile set not taking effect on SDL2Erik Kundiman
From https://wiki.libsdl.org/SDL2/MigrationGuide "So now that your window is back on the screen, let's talk strategy. SDL2 still has SDL_Surface, but what you want, if possible, is the new SDL_Texture. Surfaces are always in system RAM now, and are always operated on by the CPU, so we want to get away from there. SDL2 has a new rendering API. It's meant for use by simple 2D games, but most notably, it's meant to get all that software rendering into video RAM and onto the GPU. And even if you just want to use it to get your software renderer's work to the screen, it brings some very nice benefits: if possible, it will use OpenGL or Direct3D behind the scenes, which means you'll get faster blits, a working Steam Overlay, and scaling for free."
2024-06-20Merge remote-tracking branch 'secondlife/release/maint-b' into maint-bErik Kundiman
2024-06-18SDL 2 Window completions and HiDPI supportmobserveur
This commit completes the SDL 2 support and adds HiDPI support for Mac.
2024-06-14Revert "Replace LL_X11 and LL_FLTK to LL_LINUX"AiraYumi
2024-06-12Replace LL_X11 and LL_FLTK to LL_LINUXAiraYumi
2024-06-06Change LL_FREEBSD to already existing __FreeBSD__Erik Kundiman
So we don't need to have a custom environment -DLL_FREEBSD=1 setting.
2024-05-18Colour bits test not done on Linux eitherErik Kundiman
Cause last time I checked, it didn't pass on Fedora.
2024-05-17More misleading indentation fixesErik Kundiman
2024-05-17Parts that were left out during 7.1.7 mergeErik Kundiman
Including a very important one which is so assets are fetched!
2024-05-16Merge tag '7.1.7-release'Erik Kundiman
source for viewer 7.1.7.8974243247
2024-05-16Correcting the display position of the input dialog (#1480)AiraYumi
2024-05-15Merge branch 'main' into marchcat/x-b-mergeAndrey Lihatskiy
# Conflicts: # autobuild.xml # indra/cmake/ConfigurePkgConfig.cmake # indra/cmake/ICU4C.cmake # indra/media_plugins/gstreamer010/llmediaimplgstreamer_syms.cpp # indra/media_plugins/gstreamer010/llmediaimplgstreamer_syms.h # indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h # indra/media_plugins/gstreamer010/llmediaimplgstreamervidplug.cpp # indra/media_plugins/gstreamer010/llmediaimplgstreamervidplug.h # indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp # indra/newview/llappviewerlinux_api.h # indra/newview/llappviewerlinux_api_dbus.cpp # indra/newview/llappviewerlinux_api_dbus.h # indra/newview/llfloateremojipicker.cpp # indra/newview/lloutfitslist.cpp
2024-05-02Convert the detected VRAM on NVIDIA & ATI to MBsErik Kundiman
2024-05-02Correct the GL function used for detecting VRAMErik Kundiman
2024-05-01Attempt to detect NVIDIA & ATI VRAMErik Kundiman
Done in a simple way, without checking the GLX extension string.
2024-04-29#824 Process source files in bulk: replace tabs with spaces, convert CRLF to ↵Andrey Lihatskiy
LF, and trim trailing whitespaces as needed
2024-04-05Linux viewer (ReleaseOS) resurrection (#1099)Nicky Dasmijn
Co-authored-by: AiraYumi <aira.youme@airanyumi.net>
2024-02-22IME composition is now replaced by the resultErik Kundiman
instead of being printed alongside. For now, it always gets reset from the start after pressing Return, which is to be fixed next.
2024-01-30First attempt to fix unicode inputErik Kundiman
It should work well enough with most, but on Japanese (I assume all CJK), for now the composition part is still left printed out along with the result (as opposed to just replaced by the result). It's to be fixed next.
2024-01-15Re-enable GL colour bits check but only on LinuxErik Kundiman
It seems the queries don't work on BSDs, but works okay on Linuxes.
2024-01-15Revive external web browser spawning on macOSErik Kundiman
2024-01-10Ignore colour bit resultsErik Kundiman
It turns out glGetIntegerv on GL colour bits hasn't given any value, so the values used afterwards have been random since the variables aren't initialised. The numbers haven't been 8, 8, 8 since core profile or VRAM detection or something else.
2024-01-06Move assignments with vram_megabytes inside scopesErik Kundiman
There will be a case not having vram_megabytes declared.
2024-01-06VRAM detection implementation using GLX MesaErik Kundiman
/var/log/Xorg.0.log doesn't seem to contain such information any more. My Debian 12 doesn't even have that file any more, I wonder why.
2024-01-06Revive VRAM detection on macOSErik Kundiman
Copied code from llopenglview-objc.mm. It would normally fail SDL2, but somehow adding a logging fixed it O.o This is so texture compression is not enabled by default.
2023-12-21Force the GL profile to be the core oneErik Kundiman
on all platforms, not only on Darwin.
2023-12-09Fix alt dragging when not in full screenErik Kundiman
2023-11-16Merge branch 'main' into DRTVWR-559Erik Kundiman
2023-11-16Clipboard implementation using SDLErik Kundiman
For now it's when there's no GTK, to minimise diff. They should all just use SDL.
2023-09-14Merge branch 'main' into DRTVWR-559Erik Kundiman
2023-09-14getNativeKeyData impl for non Darwin non GTKErik Kundiman
Copying from GTK users part though.
2023-09-11Fix macOS crash by explicitly ask SDL2 for GL 4.1Erik Kundiman
The reason it kept crashing was because it is now a requirement for the OpenGL version to be "detected" as equal or higher than 4.09. All this time (or maybe since macOS switching to SDL2), Megapahit has been given only OpenGL 2.1 by macOS (4.1 on SL viewer & Alchemy, though funny it's 2.1 too somehow on Kokua), and now is fixed by setting the profile to core 4.1 from SDL2. The commit is on this branch only cause somehow this fix didn't work on main branch (it crashed). So 6.6.x is stuck with 2.1 for macOS. We're moving forward with this branch anyway, which will be merged to main in the (hopefully near) future.
2023-09-11Merge branch 'main' into DRTVWR-559Erik Kundiman
2023-09-11Revive HiDPI support & multi threaded OpenGLErik Kundiman
See 7dd1149e3649057f0962b85bdc467f4e9299b235. The attributes only needed to be moved from LLWindowMacOS X to LLWindowSDL.
2023-09-10SDL window overrides all window pure virtual funcsErik Kundiman
including the new getAvailableVRAMMegabytes. The "override" word must be explicitly stated now.
2023-09-05Preprocess non portable GL funcs & macrosErik Kundiman
so that implementations that don't include a certain GL implementation won't fail trying to compile the code.
2023-08-26Make using the system browser for links worksErik Kundiman
First, in order for launch_url.sh to be executable, it needs to be installed as a program. Secondly, the spawn browser command path needs to be adjusted accordingly. And last, add chrome (applies to chromium too on FBSD), to the list of browser commands to try (so chrome wasn't there :/, but dillo has always been XD, and that's why it kept opening Dillo here haha).
2023-08-21Darwin & any platform can, and should, use SDLErik Kundiman
The alt mouse click to cam is broken for now on macOS, but this is the path we've chosen.
2023-08-17Re-enable x11_detect_VRAM_kb useErik Kundiman
It's an error according to GCC when defined but not used. It could, and probably should, still be used anyway, just not the SDL version.
2023-08-16Revive alt mouse click override with X11Erik Kundiman
On SDL2, there are no more x11.lock_func or x11.unlock_func, so the camming is too sensitive, and alt tab is overridden too when it shouldn't be. It's better than nothing at all for now. This feature should be re-perfected later.
2023-08-16Revive mouse wheel on SDL2Erik Kundiman
2023-08-15SDL 1.2 to 2.0 migrationErik Kundiman
Both keycodes and scancodes are now 32 bits, so the key type is lengthened from U16 to U32.
2023-07-19Fix what GCC considers as misleading indentationsErik Kundiman
The style conventions aren't really being followed that the different styles of using tabs or spaces as indentations lead to GCC considering them as misleading. It's better to just fix them (but as little as possible as to minimise this fork difference from upstream) than to supress the warnings from being treated as errors.
2023-07-19Disable g_thread_init when using system libsErik Kundiman
On GCC, compiling against a recent GTK2 version would stop on deprecated pre-processors.