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
d41a8dca
Commit
d41a8dca
authored
Nov 27, 2018
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build: Fix build warnings introduced by 2173c6.
Also bump version for recent changes.
parent
c7a84a92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
revision.h
glslang/Include/revision.h
+1
-1
Constant.cpp
glslang/MachineIndependent/Constant.cpp
+11
-11
No files found.
glslang/Include/revision.h
View file @
d41a8dca
// This header is generated by the make-revision script.
// This header is generated by the make-revision script.
#define GLSLANG_PATCH_LEVEL
2997
#define GLSLANG_PATCH_LEVEL
3006
glslang/MachineIndependent/Constant.cpp
100644 → 100755
View file @
d41a8dca
...
@@ -671,27 +671,27 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TType& returnType)
...
@@ -671,27 +671,27 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TType& returnType)
}
}
case
EOpConvInt8ToBool
:
case
EOpConvInt8ToBool
:
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getI8Const
());
break
;
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getI8Const
()
!=
0
);
break
;
case
EOpConvUint8ToBool
:
case
EOpConvUint8ToBool
:
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getU8Const
());
break
;
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getU8Const
()
!=
0
);
break
;
case
EOpConvInt16ToBool
:
case
EOpConvInt16ToBool
:
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getI16Const
());
break
;
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getI16Const
()
!=
0
);
break
;
case
EOpConvUint16ToBool
:
case
EOpConvUint16ToBool
:
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getU16Const
());
break
;
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getU16Const
()
!=
0
);
break
;
case
EOpConvIntToBool
:
case
EOpConvIntToBool
:
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getIConst
());
break
;
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getIConst
()
!=
0
);
break
;
case
EOpConvUintToBool
:
case
EOpConvUintToBool
:
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getUConst
());
break
;
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getUConst
()
!=
0
);
break
;
case
EOpConvInt64ToBool
:
case
EOpConvInt64ToBool
:
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getI64Const
());
break
;
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getI64Const
()
!=
0
);
break
;
case
EOpConvUint64ToBool
:
case
EOpConvUint64ToBool
:
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getI64Const
());
break
;
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getI64Const
()
!=
0
);
break
;
case
EOpConvFloat16ToBool
:
case
EOpConvFloat16ToBool
:
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getDConst
());
break
;
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getDConst
()
!=
0
);
break
;
case
EOpConvFloatToBool
:
case
EOpConvFloatToBool
:
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getDConst
());
break
;
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getDConst
()
!=
0
);
break
;
case
EOpConvDoubleToBool
:
case
EOpConvDoubleToBool
:
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getDConst
());
break
;
newConstArray
[
i
].
setBConst
(
unionArray
[
i
].
getDConst
()
!=
0
);
break
;
case
EOpConvBoolToInt8
:
case
EOpConvBoolToInt8
:
newConstArray
[
i
].
setI8Const
(
unionArray
[
i
].
getBConst
());
break
;
newConstArray
[
i
].
setI8Const
(
unionArray
[
i
].
getBConst
());
break
;
...
...
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