Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
d9739794
Unverified
Commit
d9739794
authored
Jan 17, 2019
by
John Kessenich
Committed by
GitHub
Jan 17, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1662 from dneto0/fix-leak2
HLSL: Avoid leaking a shadow sampler struct
parents
7f2a87e5
edadbed6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
hlslParseHelper.cpp
hlsl/hlslParseHelper.cpp
+2
-1
No files found.
hlsl/hlslParseHelper.cpp
View file @
d9739794
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
#include "hlslGrammar.h"
#include "hlslGrammar.h"
#include "hlslAttributes.h"
#include "hlslAttributes.h"
#include "../glslang/Include/Common.h"
#include "../glslang/MachineIndependent/Scan.h"
#include "../glslang/MachineIndependent/Scan.h"
#include "../glslang/MachineIndependent/preprocessor/PpContext.h"
#include "../glslang/MachineIndependent/preprocessor/PpContext.h"
...
@@ -3129,7 +3130,7 @@ TIntermAggregate* HlslParseContext::handleSamplerTextureCombine(const TSourceLoc
...
@@ -3129,7 +3130,7 @@ TIntermAggregate* HlslParseContext::handleSamplerTextureCombine(const TSourceLoc
if
(
textureShadowEntry
!=
textureShadowVariant
.
end
())
if
(
textureShadowEntry
!=
textureShadowVariant
.
end
())
newId
=
textureShadowEntry
->
second
->
get
(
shadowMode
);
newId
=
textureShadowEntry
->
second
->
get
(
shadowMode
);
else
else
textureShadowVariant
[
texSymbol
->
getId
()]
=
new
tShadowTextureSymbols
;
textureShadowVariant
[
texSymbol
->
getId
()]
=
NewPoolObject
(
tShadowTextureSymbols
(),
1
)
;
// Sometimes we have to create another symbol (if this texture has been seen before,
// Sometimes we have to create another symbol (if this texture has been seen before,
// and we haven't created the form for this shadow mode).
// and we haven't created the form for this shadow mode).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment