Commit Graph

46565 Commits (d2294841b2df66f4e684b5eed1cae955cea21cf8)

Author SHA1 Message Date
Henri Beauchamp 9c5043d8c6 Fix a thread safety issue in the GL image worker.
LLViewerTexture::mNeedsCreateTexture needs to be an attomic bool since
it is written both in the main thread and in the GL image worker thread.

We can now enable threaded bump maps creation as a result of this fix.

I have read the CLA Document and I hereby sign the CLA
2022-11-19 21:42:41 +01:00
Mnikolenko Productengine baecfe14c2 restore correct glh_linear version 2022-11-19 12:19:56 +02:00
Mnikolenko Productengine f0809019f8 SL-18670 change limits of RenderVolumeLODFactor in Preference similar to Distance detail ctrl; update slider text correctly 2022-11-19 12:04:33 +02:00
Mnikolenko Productengine d2766f34c5 SL-18675 Display render time as 1 even it's actually less 2022-11-19 11:40:14 +02:00
Signal Linden 783926e124
Merge pull request #1 from FelixWolf/CZ-1
Various repo fixes
2022-11-18 14:22:49 -08:00
Kyler Eastridge ee37ea4aa7 Renamed LICENSE.txt to follow naming scheme of other repos 2022-11-18 17:10:03 -05:00
Signal Linden f7f163f010
Merge pull request #3 from secondlife/signal/label
Add automatic PR labels
2022-11-18 08:42:14 -08:00
Signal Linden 5c77f900ac
Merge pull request #2 from secondlife/signal/cla
Add CLA bot
2022-11-18 08:41:43 -08:00
Bennett Goble d14c67509b Mark PRs as stale after 60 days, close them automatically if no response
after 7 days.
2022-11-18 07:46:25 -08:00
Bennett Goble e75104b066 Add automatic PR labels 2022-11-18 07:39:54 -08:00
Bennett Goble eaf55065e2 Add CLA bot 2022-11-18 07:30:38 -08:00
Andrey Kleshchev a8ded3bcc4 SL-17135 Pull in apr-suit package
Same apr suit version, but with debug symbols
2022-11-18 14:43:54 +02:00
Mnikolenko Productengine d57e95da96 SL-18528 Clear cached MFA token when Remember Password is unchecked in viewer 2022-11-18 14:21:58 +02:00
Kyler Eastridge 14f34041b8 Add copy of license to root directory so it is recognized by gh 2022-11-18 06:24:43 -05:00
Kyler Eastridge 35d2771cd3 Fix spelling error on license file name 2022-11-18 06:23:11 -05:00
Kyler Eastridge 4a33a0edb2 Fix readme logo for dark theme sites 2022-11-18 06:22:43 -05:00
Maxim Nikolenko 333786d2ba SL-18644 reset 'All items' filter when using 'Find Original' in Recent tab 2022-11-17 17:21:37 +02:00
Maxim Nikolenko 0ee82f5264 SL-18641 fix for 'Always display friends in full detail' setting 2022-11-17 15:04:38 +02:00
Andrey Kleshchev 5f44c2a5ff SL-15869 Do not account for login menu when checking if key combination is avaliable
Ex: Allow mapping actions to Ctrl+Alt+D
2022-11-17 00:41:35 +02:00
Bennett Goble 55103bff6d Merge remote-tracking branch 'github/master' 2022-11-15 08:14:39 -08:00
Andrey Kleshchev 73ca604ad5 SL-18618 Update libpng 2022-11-15 01:13:33 +02:00
Andrey Lihatskiy 24993a914f SL-18637 Reverted material shader changes
original fix by Beq Janus
2022-11-14 23:58:14 +02:00
Nat Goodspeed c3ddd70920 DRTVWR-575: Explain that NSInteger is really int64_t. 2022-11-13 06:10:02 -10:00
Nat Goodspeed 690a5027fb DRTVWR-575: Merge brad's xcode-14.1 fixes with nat's 2022-11-13 05:59:40 -10:00
Nat Goodspeed 4349cb6165 DRTVWR-575: Address review comments on Xcode 14.1 type tweaks.
Introduce LLSD template constructors and assignment operators to disambiguate
construction or assignment from any integer type to Integer, likewise any
floating point type to Real. Use new narrow() function to validate
conversions.

For LLSD method parameters converted from LLSD::Integer to size_t, where the
method previously checked for a negative argument, make it now check for
size_t converted from negative: in other words, more than S32_MAX. The risk of
having a parameter forced from negative to unsigned exceeds the risk of a
valid length or index over that max.

In lltracerecording.cpp's PeriodicRecording, now that mCurPeriod and
mNumRecordedPeriods are size_t instead of S32, defend against subtracting 1
from 0.

Use narrow() to validate newly-introduced narrowing conversions.

Make llclamp() return the type of the raw input value, even if the types of
the boundary values differ.

std::ostream::tellp() no longer returns a value we can directly report as a
number. Cast to U64.
2022-11-12 18:59:21 -10:00
Brad Kittenbrink 076737cb6c DRTVWR-575 fix LLGetDarwinOSInfo for xcode-14.1. NSInteger is now 64 bits 2022-11-11 18:09:23 -08:00
Brad Kittenbrink 22f6adefb8 DRTVWR-575 fix LLWorkerThread subclasses to be compatiblie with recent size_t changes in base class 2022-11-11 17:07:52 -08:00
Brad Kittenbrink 6bc0614d71 DRTVWR-575 xcode-14.1 compatibility fix. add more overloads for stricter size_t conversions 2022-11-11 16:35:51 -08:00
Brad Kittenbrink 6ec534e8d8 DRTVWR-575 xcode-14.1 compatibility fix. add overloads for stricter integer conversions 2022-11-11 15:31:46 -08:00
Mnikolenko Productengine bedbd98017 SL-18603 update Bugsplat 2022-11-11 23:05:25 +02:00
Andrey Kleshchev a954523f46 SL-18426 At log in only a part friends reported to chat as online
Server sends updates in bulk now, so notify per agent instead of per update
2022-11-10 19:40:57 +02:00
Mnikolenko Productengine 72b1cfc76b SL-18586 FIXED Crash when opening 360 snapshot 2022-11-09 14:42:27 +02:00
Andrey Lihatskiy 55c27641fe Merge remote-tracking branch 'BeqJanus/ll-viewer-pull-requests/Beq-alpha-mask-on-emissive-fix' into DRTVWR-570-maint-Q 2022-11-09 00:45:01 +02:00
Andrey Lihatskiy 2904062948 Merge remote-tracking branch 'ZiRee/viewer/master' into DRTVWR-570-maint-Q 2022-11-09 00:41:58 +02:00
Mnikolenko Productengine af675bbe63 SL-18584 FIXED viewer starts in minimized mode after a clean install 2022-11-08 12:45:25 +02:00
Beq 520ebb392b [BUG-232834][BUG-232871] Alpha mask is being applied with emissive mask
This is the most local fix for this issue, addressing the specific unqualified use of HAS_ALPHA_MASK.
If we find other issues with alpha mask being applied incorrectly then, it may be better to fix higher up in llvieweshadermgr.cpp by reverting the changes from SL-17532. 
For now, this way works for this specific bug without non-emissive side-effects.
2022-11-05 22:37:14 +00:00
Andrey Lihatskiy 4d429b7ea3 SL-18581 Don't show the starter avatar toolbar button for NUX 2022-11-05 01:02:58 +02:00
Nat Goodspeed cd997f21c2 DRTVWR-575: Introduce llssize (signed size_t) and narrow() function.
llssize is for a function parameter that should accept a size or index
(derived from size_t, which is 64 bits in a 64-bit viewer) but might need to
go negative for flag values. We've historically used S32 for that purpose, but
Xcode 14.1 complains about trying to pass size_t to S32.

narrow() is a template function that casts a wider type (e.g. size_t or
llssize) to a narrower type (e.g. S32 or U32), with validation in
RelWithDebInfo builds. It verifies (using assert()) that the value being
truncated can in fact fit into the target type.
2022-11-04 17:21:30 -04:00
Mnikolenko Productengine 549c6375f1 SL-7277 show Advanced permissions in Item profile that was opened from inventory 2022-11-04 18:18:46 +02:00
Andrey Kleshchev 6a6b10020e SL-18565 Built-in bump maps and some environment textures fail to load
Due to udp texture fetching no longer being present
2022-11-03 23:51:05 +02:00
Nat Goodspeed a2a723f383 DRTVWR-575: Suppress remaining size_t truncation warnings for now. 2022-11-03 15:19:49 -04:00
Nat Goodspeed 5a74f7648a DRTVWR-575: A few more tweaks addressing size_t wider than 32 bits. 2022-11-03 15:18:32 -04:00
Nat Goodspeed 9522a0b7c1 DRTVWR-575: Fix llcommon assumptions that size_t fits in 4 bytes.
It's a little distressing how often we have historically coded S32 or U32 to
pass a length or index.

There are more such assumptions in other viewer subdirectories, but this is a
start.
2022-11-03 14:58:32 -04:00
Mnikolenko Productengine 10fcee5be6 SL-18492 Switch inventory script compiler default from LSO to mono 2022-11-03 20:03:55 +02:00
Nat Goodspeed 206993f843 DRTVWR-575: Forbid Xcode 14.1 from implicitly signing every target.
Or rather, attempting to implicitly sign. On TeamCity we must explicitly sign
using viewer_manifest.py. On a developer system, without these changes, Xcode
produces many errors of the form:
error: An empty identity is not valid when signing a binary for the product
type 'Command-line Tool'. (in target 'INTEGRATION_TEST_lldir' from project
'SecondLife')
and refuses to compile anything at all.

Thanks to Rye Mutt and NickyD. Also thanks Geir Nøklebye for additional
settings to help tame Xcode 14.1 warnings.
2022-11-03 13:46:19 -04:00
Mnikolenko Productengine a53ccb2379 SL-18136 fix for Japanese IME 2022-11-02 19:38:01 +02:00
Andrey Lihatskiy 791fb0ee56 SL-18533 Updated ToS XUI with new language 2022-11-02 19:08:05 +02:00
Andrey Lihatskiy 67ce0e77d7 Merge remote-tracking branch 'RyeMutt/viewer/mac-fixes' into DRTVWR-570-maint-Q 2022-11-02 18:50:18 +02:00
Callum Prentice 395a60a83e Merge branch 'master' into DRTVWR-568 2022-11-02 09:09:47 -07:00
Mnikolenko Productengine 7bb47833fe Merge branch 'master' into DRTVWR-539 2022-11-02 14:52:10 +02:00