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
070aaeaf
Commit
070aaeaf
authored
Dec 15, 2017
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HLSL: Fix #1192: when bool operands are converted to ints, convert result type.
parent
35682b59
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
hlsl.boolConv.vert.out
Test/baseResults/hlsl.boolConv.vert.out
+0
-0
Intermediate.cpp
glslang/MachineIndependent/Intermediate.cpp
+5
-0
No files found.
Test/baseResults/hlsl.boolConv.vert.out
View file @
070aaeaf
This diff is collapsed.
Click to expand it.
glslang/MachineIndependent/Intermediate.cpp
View file @
070aaeaf
...
...
@@ -2474,6 +2474,11 @@ bool TIntermediate::promoteBinary(TIntermBinary& node)
return
false
;
node
.
setLeft
(
left
);
node
.
setRight
(
right
);
// Update the original base assumption on result type..
node
.
setType
(
left
->
getType
());
node
.
getWritableType
().
getQualifier
().
clear
();
break
;
default
:
...
...
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