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
7f0bcfd8
Commit
7f0bcfd8
authored
Apr 05, 2018
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1333: Protect against -g for non-generating code.
parent
a89f8cf7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
StandAlone.cpp
StandAlone/StandAlone.cpp
+3
-0
localintermediate.h
glslang/MachineIndependent/localintermediate.h
+1
-1
No files found.
StandAlone/StandAlone.cpp
View file @
7f0bcfd8
...
...
@@ -729,6 +729,9 @@ void SetMessageOptions(EShMessages& messages)
//
void
CompileShaders
(
glslang
::
TWorklist
&
worklist
)
{
if
(
Options
&
EOptionDebug
)
Error
(
"cannot generate debug information unless linking to generate code"
);
glslang
::
TWorkItem
*
workItem
;
if
(
Options
&
EOptionStdin
)
{
worklist
.
remove
(
workItem
);
...
...
glslang/MachineIndependent/localintermediate.h
View file @
7f0bcfd8
...
...
@@ -619,7 +619,7 @@ public:
return
semanticNameSet
.
insert
(
name
).
first
->
c_str
();
}
void
setSourceFile
(
const
char
*
file
)
{
sourceFile
=
file
;
}
void
setSourceFile
(
const
char
*
file
)
{
if
(
file
!=
nullptr
)
sourceFile
=
file
;
}
const
std
::
string
&
getSourceFile
()
const
{
return
sourceFile
;
}
void
addSourceText
(
const
char
*
text
)
{
sourceText
=
sourceText
+
text
;
}
const
std
::
string
&
getSourceText
()
const
{
return
sourceText
;
}
...
...
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