Fixed incorrect cast

This commit is contained in:
Robert Osfield
2016-06-29 11:25:08 +01:00
parent ec74518868
commit 2897ab13cb
3 changed files with 4 additions and 1 deletions

View File

@@ -222,6 +222,7 @@ SET(TARGET_H
${HEADER_PATH}/VertexProgram
${HEADER_PATH}/View
${HEADER_PATH}/Viewport
${HEADER_PATH}/ViewportIndexed
${OPENSCENEGRAPH_VERSION_HEADER}
${OPENSCENEGRAPH_CONFIG_HEADER}
${OPENSCENEGRAPH_OPENGL_HEADER}
@@ -388,6 +389,7 @@ SET(TARGET_SRC
VertexProgram.cpp
View.cpp
Viewport.cpp
ViewportIndexed.cpp
glu/libutil/error.cpp
glu/libutil/mipmap.cpp

View File

@@ -39,7 +39,7 @@ void ColorMaski::apply(State& state) const
const GLExtensions* extensions = state.get<GLExtensions>();
if (extensions->glColorMaski)
{
extensions->glColorMaski((GLboolean)_index, (GLboolean)_red,(GLboolean)_green,(GLboolean)_blue,(GLboolean)_alpha);
extensions->glColorMaski((GLuint)_index, (GLboolean)_red,(GLboolean)_green,(GLboolean)_blue,(GLboolean)_alpha);
}
else
{