Commit Graph

46093 Commits (97d58e6184756c25d905cd05ab3073d7560a05ab)

Author SHA1 Message Date
Maxim Nikolenko 112446804d
SL-18486 Complete Avatars floater is blank. 2022-12-03 03:04:01 +02:00
Maxim Nikolenko cfc2d2890e
SL-18243 Add wear and unwear buttons on line items in Outfits floater 2022-12-01 02:04:04 +02:00
Andrey Kleshchev 6de5986333 SL-18718 Crash at LLEventPump::listen and connection issues
Cleaner reinit and termination.
2022-11-28 17:25:43 +02:00
Andrey Lihatskiy 2dd3030993 Merge branch 'main' into DRTVWR-570-maint-Q 2022-11-23 00:33:45 +02:00
Andrey Lihatskiy e0f7b4d04b Merge branch 'main' into DRTVWR-565-maint-P 2022-11-23 00:33:33 +02:00
Andrey Kleshchev 87664fa35d SL-18219 Crash getting and sending render info on exit
There might be other causes for sendRenderInfoToRegion and getRenderInfoFromRegion, crashing, but in some cases viewer was shutting down
2022-11-22 23:08:47 +02:00
Brad Payne (Vir Linden) 11bd72661c Merge branch 'inventory_extensions', remote-tracking branch 'origin' into DRTVWR-567 2022-11-22 15:59:33 +00:00
Brad Payne (Vir Linden) f6208020f5 SL-18629 - use AISAPI for some paths of new category creation 2022-11-22 15:46:08 +00:00
RunitaiLinden f3f3c493ec
Merge pull request #6 from sldevel/master
Fix a thread safety issue in the GL image worker.
2022-11-21 17:50:37 -06:00
Andrey Kleshchev e231b6d8d3 SL-18689 Crash at LLTabContainer::selectNextTab()
FPE_NOOP at "idx = (idx + 1 ) % (S32)mTabList.size();"
2022-11-22 01:45:04 +02:00
Andrey Kleshchev 9ea7526f60 SL-18565 Prevent texture fetch crash on second login attempt 2022-11-22 01:24:47 +02:00
Andrey Lihatskiy 25c62f554f Merge branch 'master' into DRTVWR-570-maint-Q 2022-11-21 22:46:35 +02:00
Bennett Goble c8f08f232a SL-18218: Switch canonical_repo to GitHub URL 2022-11-21 11:51:53 -08:00
Andrey Kleshchev 96f0c95898 Merge branch master into DRTVWR-565-maint-P 2022-11-21 20:48:24 +02:00
Andrey Kleshchev 45b26b2444 SL-18565 restoreGL should re-add bumpmaps 2022-11-21 20:22:47 +02:00
Brad Payne (Vir Linden) 27046fcc14 SL-18629 - moving createNewCategory to AIS3 2022-11-21 13:48:23 +00:00
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
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 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
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
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 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
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
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
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