aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alState.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-18 03:39:32 -0800
committerChris Robinson <[email protected]>2018-11-18 03:39:32 -0800
commit7433cb5f4cb0515dd6e314978f579ae91e2c63c4 (patch)
tree1a2e51d6e819cabcd51ac24fafe345a47a469667 /OpenAL32/alState.cpp
parentbf30eb0391b84e81353139354d2ec665942847f1 (diff)
Avoid naming a struct member the same as an enum type
Diffstat (limited to 'OpenAL32/alState.cpp')
-rw-r--r--OpenAL32/alState.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenAL32/alState.cpp b/OpenAL32/alState.cpp
index c550d2b5..8ff2c2c3 100644
--- a/OpenAL32/alState.cpp
+++ b/OpenAL32/alState.cpp
@@ -149,7 +149,7 @@ AL_API ALboolean AL_APIENTRY alGetBoolean(ALenum pname)
break;
case AL_DISTANCE_MODEL:
- if(context->DistanceModel == DistanceModel::Default)
+ if(context->mDistanceModel == DistanceModel::Default)
value = AL_TRUE;
break;
@@ -202,7 +202,7 @@ AL_API ALdouble AL_APIENTRY alGetDouble(ALenum pname)
break;
case AL_DISTANCE_MODEL:
- value = (ALdouble)context->DistanceModel;
+ value = (ALdouble)context->mDistanceModel;
break;
case AL_SPEED_OF_SOUND:
@@ -251,7 +251,7 @@ AL_API ALfloat AL_APIENTRY alGetFloat(ALenum pname)
break;
case AL_DISTANCE_MODEL:
- value = (ALfloat)context->DistanceModel;
+ value = (ALfloat)context->mDistanceModel;
break;
case AL_SPEED_OF_SOUND:
@@ -300,7 +300,7 @@ AL_API ALint AL_APIENTRY alGetInteger(ALenum pname)
break;
case AL_DISTANCE_MODEL:
- value = (ALint)context->DistanceModel;
+ value = (ALint)context->mDistanceModel;
break;
case AL_SPEED_OF_SOUND:
@@ -349,7 +349,7 @@ extern "C" AL_API ALint64SOFT AL_APIENTRY alGetInteger64SOFT(ALenum pname)
break;
case AL_DISTANCE_MODEL:
- value = (ALint64SOFT)context->DistanceModel;
+ value = (ALint64SOFT)context->mDistanceModel;
break;
case AL_SPEED_OF_SOUND:
@@ -708,7 +708,7 @@ AL_API ALvoid AL_APIENTRY alDistanceModel(ALenum value)
else
{
std::lock_guard<almtx_t> _{context->PropLock};
- context->DistanceModel = static_cast<enum DistanceModel>(value);
+ context->mDistanceModel = static_cast<DistanceModel>(value);
if(!context->SourceDistanceModel)
DO_UPDATEPROPS();
}
@@ -785,7 +785,7 @@ void UpdateContextProps(ALCcontext *context)
props->SpeedOfSound = context->SpeedOfSound;
props->SourceDistanceModel = context->SourceDistanceModel;
- props->DistanceModel = context->DistanceModel;
+ props->mDistanceModel = context->mDistanceModel;
/* Set the new container for updating internal parameters. */
props = static_cast<ALcontextProps*>(ATOMIC_EXCHANGE_PTR(&context->Update, props,