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
c37f8d6b
Commit
c37f8d6b
authored
Jan 20, 2017
by
John Kessenich
Committed by
GitHub
Jan 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #683 from rdb/master
Fix compilation with MSVC 2010
parents
22f25d80
a2f0e0e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
hlslParseHelper.cpp
hlsl/hlslParseHelper.cpp
+4
-5
No files found.
hlsl/hlslParseHelper.cpp
View file @
c37f8d6b
...
...
@@ -1079,11 +1079,10 @@ void HlslParseContext::flatten(const TSourceLoc& loc, const TVariable& variable)
{
const
TType
&
type
=
variable
.
getType
();
// emplace gives back a pair whose .first is an iterator to the item...
auto
entry
=
flattenMap
.
emplace
(
variable
.
getUniqueId
(),
TFlattenData
(
type
.
getQualifier
().
layoutBinding
));
auto
entry
=
flattenMap
.
insert
(
std
::
make_pair
(
variable
.
getUniqueId
(),
TFlattenData
(
type
.
getQualifier
().
layoutBinding
)));
//
... and
the item is a map pair, so first->second is the TFlattenData itself.
// the item is a map pair, so first->second is the TFlattenData itself.
flatten
(
loc
,
variable
,
type
,
entry
.
first
->
second
,
""
);
}
...
...
@@ -1895,7 +1894,7 @@ TIntermTyped* HlslParseContext::handleAssign(const TSourceLoc& loc, TOperator op
if
(
split
&&
derefType
.
isBuiltInInterstageIO
(
language
))
{
// copy from interstage IO builtin if needed
subTree
=
intermediate
.
addSymbol
(
*
interstageBuiltInIo
.
find
(
tInterstageIoData
(
derefType
,
outer
->
getType
()))
->
second
);
subTree
=
intermediate
.
addSymbol
(
*
interstageBuiltInIo
[
tInterstageIoData
(
derefType
,
outer
->
getType
())]
);
}
else
if
(
flattened
&&
isFinalFlattening
(
derefType
))
{
subTree
=
intermediate
.
addSymbol
(
*
flatVariables
[
memberIdx
++
]);
}
else
{
...
...
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