mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +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)
|
bool Effect::setParams(const std::map<Parameter, float> ¶ms)
|
||||||
{
|
{
|
||||||
this->params = params;
|
this->params = params;
|
||||||
type = static_cast<Type>(this->params[EFFECT_TYPE]);
|
type = (Type)(int) this->params[EFFECT_TYPE];
|
||||||
|
|
||||||
if (!generateEffect())
|
if (!generateEffect())
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ ALuint Filter::getFilter() const
|
|||||||
bool Filter::setParams(const std::map<Parameter, float> ¶ms)
|
bool Filter::setParams(const std::map<Parameter, float> ¶ms)
|
||||||
{
|
{
|
||||||
this->params = params;
|
this->params = params;
|
||||||
type = static_cast<Type>(this->params[FILTER_TYPE]);
|
type = (Type)(int) this->params[FILTER_TYPE];
|
||||||
|
|
||||||
if (!generateFilter())
|
if (!generateFilter())
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user