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
ACGL
acgl
Commits
5962ab13
Commit
5962ab13
authored
Aug 30, 2011
by
Janis Born
Browse files
add some missing typecasts
parent
a5244b32
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/ACGL/OpenGL/Controller/VertexBufferObjectControl.hh
View file @
5962ab13
...
...
@@ -55,7 +55,7 @@ public:
inline
VertexBufferObjectControl
&
attribute
(
const
std
::
string
&
_name
,
const
std
::
string
&
_nameInArray
)
{
AttributeDefine
a
=
{
_name
,
mArrayBuffers
.
size
()
-
1
,
_nameInArray
};
AttributeDefine
a
=
{
_name
,
(
int_t
)
mArrayBuffers
.
size
()
-
1
,
_nameInArray
};
mAttributeDefines
.
push_back
(
a
);
return
*
this
;
}
...
...
src/ACGL/OpenGL/Objects/RenderObject.cc
View file @
5962ab13
...
...
@@ -18,7 +18,7 @@ void RenderObject::updateMappings (void)
{
for
(
VertexBufferObject
::
AttributeVec
::
size_type
i
=
0
;
i
<
mpVertexBufferObject
->
getAttributes
().
size
();
++
i
)
{
AttributeMapping
mapping
=
{
i
,
mpShaderProgramObject
->
getShaderProgram
()
->
getAttributeLocation
(
mpVertexBufferObject
->
getAttributes
()[
i
].
name
)};
AttributeMapping
mapping
=
{
(
int_t
)
i
,
(
int_t
)
mpShaderProgramObject
->
getShaderProgram
()
->
getAttributeLocation
(
mpVertexBufferObject
->
getAttributes
()[
i
].
name
)};
bool
inserted
=
false
;
for
(
AttributeMappingVec
::
iterator
it
=
mAttributeMappings
.
begin
();
it
<
mAttributeMappings
.
end
()
&&
!
inserted
;
it
++
)
{
...
...
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