mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Potentially fix compilation for MSVC
--HG-- branch : minor
This commit is contained in:
@@ -89,7 +89,7 @@ ALuint Effect::getEffect() const
|
||||
bool Effect::setParams(const std::map<Parameter, float> ¶ms)
|
||||
{
|
||||
this->params = params;
|
||||
type = static_cast<Type>(this->params[EFFECT_TYPE]);
|
||||
type = (Type)(int) this->params[EFFECT_TYPE];
|
||||
|
||||
if (!generateEffect())
|
||||
return false;
|
||||
|
||||
@@ -88,7 +88,7 @@ ALuint Filter::getFilter() const
|
||||
bool Filter::setParams(const std::map<Parameter, float> ¶ms)
|
||||
{
|
||||
this->params = params;
|
||||
type = static_cast<Type>(this->params[FILTER_TYPE]);
|
||||
type = (Type)(int) this->params[FILTER_TYPE];
|
||||
|
||||
if (!generateFilter())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user