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
97aeba60
Commit
97aeba60
authored
Nov 19, 2015
by
Jan Möbius
Browse files
Try to fix c++ error
parent
097369b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ACG/GL/ShaderGenerator.cc
View file @
97aeba60
...
@@ -1943,7 +1943,7 @@ void ShaderProgGenerator::addTexGenCode( QStringList* _code, bool _fragmentShade
...
@@ -1943,7 +1943,7 @@ void ShaderProgGenerator::addTexGenCode( QStringList* _code, bool _fragmentShade
// init with default value: input or zero
// init with default value: input or zero
if
(
ioDesc_
.
inputTexCoord_
&&
!
generateTexCoord
)
if
(
ioDesc_
.
inputTexCoord_
&&
!
generateTexCoord
)
texcoordVarInit
+=
"= "
SG_INPUT_TEXCOORD
";"
;
texcoordVarInit
+=
"= "
SG_INPUT_TEXCOORD
";"
;
else
if
(
0
<=
texcoordVarDim
&&
texcoordVarDim
<=
4
)
else
if
(
0
<=
texcoordVarDim
&&
texcoordVarDim
<=
4
)
{
{
QString
zeroVecDefs
[]
=
QString
zeroVecDefs
[]
=
...
@@ -1974,7 +1974,7 @@ void ShaderProgGenerator::addTexGenCode( QStringList* _code, bool _fragmentShade
...
@@ -1974,7 +1974,7 @@ void ShaderProgGenerator::addTexGenCode( QStringList* _code, bool _fragmentShade
for
(
int
i
=
0
;
i
<
desc_
.
texGenDim
;
++
i
)
for
(
int
i
=
0
;
i
<
desc_
.
texGenDim
;
++
i
)
{
{
QString
assignmentInstrString
;
QString
assignmentInstrString
;
assignmentInstrString
.
sprintf
(
"sg_vTexCoord.%s = dot("
SG_INPUT_POSOS
", g_vTexGenPlane[%i]);"
,
texGenCoordString
[
i
],
i
);
assignmentInstrString
.
sprintf
(
"sg_vTexCoord.%s = dot("
SG_INPUT_POSOS
", g_vTexGenPlane[%i]);"
,
texGenCoordString
[
i
],
i
);
_code
->
push_back
(
assignmentInstrString
);
_code
->
push_back
(
assignmentInstrString
);
}
}
}
break
;
}
break
;
...
...
Write
Preview
Supports
Markdown
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