Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper-Free
Commits
bc8be1bc
Commit
bc8be1bc
authored
May 11, 2016
by
Jan Möbius
Browse files
Fixed some cppcheck warnings
parent
881e2726
Changes
2
Show whitespace changes
Inline
Side-by-side
ACG/GL/MeshCompiler.cc
View file @
bc8be1bc
...
@@ -891,7 +891,6 @@ void MeshCompiler::forceUnsharedFaceVertex()
...
@@ -891,7 +891,6 @@ void MeshCompiler::forceUnsharedFaceVertex()
for
(
int
t
=
0
;
t
<
numRemainingTris
;
++
t
)
for
(
int
t
=
0
;
t
<
numRemainingTris
;
++
t
)
{
{
// check if the triangle references the good corner by testing the 3 vertices of the triangulation
// check if the triangle references the good corner by testing the 3 vertices of the triangulation
bool
triSkipped
=
true
;
for
(
int
k
=
0
;
k
<
3
;
++
k
)
for
(
int
k
=
0
;
k
<
3
;
++
k
)
{
{
int
cornerID
=
-
1
-
triIndexBuffer_
[(
triCounter
+
currentTri
->
id
)
*
3
+
k
];
int
cornerID
=
-
1
-
triIndexBuffer_
[(
triCounter
+
currentTri
->
id
)
*
3
+
k
];
...
@@ -915,7 +914,6 @@ void MeshCompiler::forceUnsharedFaceVertex()
...
@@ -915,7 +914,6 @@ void MeshCompiler::forceUnsharedFaceVertex()
++
numTrisCovered
;
++
numTrisCovered
;
triSkipped
=
false
;
// remove triangle from the ring list
// remove triangle from the ring list
currentTri
->
prev
->
next
=
currentTri
->
next
;
currentTri
->
prev
->
next
=
currentTri
->
next
;
...
...
PluginCollection-Renderers/Plugin-Render-Old-DepthPeeling/ClassicDepthPeeling.cc
View file @
bc8be1bc
...
@@ -79,6 +79,9 @@ DepthPeelingPlugin::DepthPeelingPlugin() :
...
@@ -79,6 +79,9 @@ DepthPeelingPlugin::DepthPeelingPlugin() :
for
(
unsigned
int
i
=
0
;
i
<
4
;
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
4
;
++
i
)
blendDualPeelProg_
[
i
]
=
0
;
blendDualPeelProg_
[
i
]
=
0
;
for
(
unsigned
int
i
=
0
;
i
<
16
;
++
i
)
glLightIDs_
[
i
]
=
0
;
}
}
...
@@ -255,7 +258,7 @@ void DepthPeelingPlugin::generatePeelingShaders(GLSL::StringList* _strVertexShad
...
@@ -255,7 +258,7 @@ void DepthPeelingPlugin::generatePeelingShaders(GLSL::StringList* _strVertexShad
std
::
string
strMaterial
=
"gl_FrontLightProduct["
;
std
::
string
strMaterial
=
"gl_FrontLightProduct["
;
{
{
char
szTmp
[
8
];
char
szTmp
[
8
];
sprintf
(
szTmp
,
"%
d
]"
,
glLightIDs_
[
i
]);
sprintf
(
szTmp
,
"%
u
]"
,
glLightIDs_
[
i
]);
strLight
+=
szTmp
;
strLight
+=
szTmp
;
strMaterial
+=
szTmp
;
strMaterial
+=
szTmp
;
...
...
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