Commit Graph

46175 Commits (3a5c41a20e6044c8cfa71dfd1583fea0809d6a68)

Author SHA1 Message Date
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
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
Andrey Lihatskiy 9e9ae59b4f Merge branch 'master' into DRTVWR-565-maint-P 2022-11-01 23:23:22 +02:00
Andrey Lihatskiy 21079869fc Merge branch 'master' into DRTVWR-570-maint-Q 2022-11-01 23:23:04 +02:00
Nat Goodspeed 15b5dedb2d Increment viewer version to 6.6.8
following promotion of DRTVWR-575
2022-11-01 17:16:13 -04:00
Andrey Lihatskiy 31115dac2c Merge remote-tracking branch 'RyeMutt/viewer/minor-fixes' into DRTVWR-570-maint-Q 2022-11-01 23:12:58 +02:00
Andrey Lihatskiy 39e08b34b1 Merge remote-tracking branch 'RyeMutt/viewer/llsd-usage-fixes' into DRTVWR-570-maint-Q 2022-11-01 23:11:57 +02:00
Brad Kittenbrink 52b64bcfd7 Fix SL-18511 TOS and MFA login failure handlers must cooperate to answer both reasons at the same time 2022-10-31 14:17:05 -07:00
Rye Mutt 0c36fed110 Correct macOS png loader to use a default gamma of 2.2 as apple has done since OS 10.6 2022-10-30 18:05:34 -04:00
Rye Mutt f3dd2bf95f Fix menu checks for enabling object sit and touch to not traverse the entire menu holder to update labels 2022-10-30 07:00:01 -04:00
Rye Mutt 8669f3f4c2 Fix line editors deselecting when pressing capslock 2022-10-30 06:59:54 -04:00
Rye Mutt d0e07c770b Fix checks for empty LLSD maps to use size and not emptyMap which is for creating an empty LLSDMap type. 2022-10-30 06:56:16 -04:00
Rye Mutt 971fd6f843 Fix use of deprecated CGDisplayAvailableModes with CGDisplayCopyAllDisplayModes 2022-10-29 23:18:35 -04:00
Rye Mutt d89033420e Fix RenderAppleUseMultGL debug setting for enabling threaded GL engine 2022-10-29 23:18:03 -04:00
Rye Mutt 83466b301a Clean up autorelease behavior in llwindowmac and additional leaks 2022-10-28 18:53:34 -04:00
Rye Mutt d628a537f5 Fix leaks in mac IME 2022-10-28 18:51:11 -04:00
Rye Mutt 97ea17e6e9 Fix leak of copy and paste on mac 2022-10-28 18:50:38 -04:00
Rye Mutt 662dd44587 Fix leaks in mac filepicker code 2022-10-28 18:49:32 -04:00