mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't linkify any @123 EID text that is followed by an x
* This isn't something we generally want to support (@123 should be a separate word) and it can come up with shader names like `shader@0x12345` as well as with icon@2x.png
This commit is contained in:
@@ -478,8 +478,8 @@ void RichResourceTextInitialise(QVariant &var, ICaptureContext *ctx)
|
||||
|
||||
int end = match.capturedEnd(4);
|
||||
|
||||
// skip @2x since it appears in high-DPI icons
|
||||
if(eid == 2 && end < text.length() && text[end] == QLatin1Char('x'))
|
||||
// skip @..x since e.g. @2x appears in high-DPI icons and @0x08732 can appear in shader name
|
||||
if(end < text.length() && text[end] == QLatin1Char('x'))
|
||||
{
|
||||
match = resRE.match(text, end);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user