Cleaned up the types.
This commit is contained in:
@@ -20,11 +20,11 @@
|
||||
using namespace osg;
|
||||
|
||||
BlendEquation::BlendEquation():
|
||||
_equation(FUNC_ADD_EXT)
|
||||
_equation(FUNC_ADD)
|
||||
{
|
||||
}
|
||||
|
||||
BlendEquation::BlendEquation(GLenum equation):
|
||||
BlendEquation::BlendEquation(Equation equation):
|
||||
_equation(equation)
|
||||
{
|
||||
}
|
||||
@@ -48,7 +48,7 @@ void BlendEquation::apply(State& state) const
|
||||
return;
|
||||
}
|
||||
|
||||
extensions->glBlendEquation(_equation);
|
||||
extensions->glBlendEquation(static_cast<GLenum>(_equation));
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ LogicOp::LogicOp():
|
||||
{
|
||||
}
|
||||
|
||||
LogicOp::LogicOp(GLenum opcode):
|
||||
LogicOp::LogicOp(Opcode opcode):
|
||||
_opcode(opcode)
|
||||
{
|
||||
}
|
||||
@@ -30,6 +30,6 @@ LogicOp::~LogicOp()
|
||||
|
||||
void LogicOp::apply(State&) const
|
||||
{
|
||||
glLogicOp(_opcode);
|
||||
glLogicOp(static_cast<GLenum>(_opcode));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user