aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-11-01 23:34:54 -0700
committerChris Robinson <[email protected]>2012-11-01 23:41:18 -0700
commitfc7adccd6fbe00b86e3d9451cf8cb0c37297a684 (patch)
tree4756d975857c5a1338fde43608091aa1687db969
parent97bf718d0ed29cd4fd219ad3bae6e1ad12d321e0 (diff)
Fix retrieving the source's write offset
-rw-r--r--OpenAL32/alSource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 3ba4387f..dace22d6 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -791,7 +791,7 @@ static ALenum GetSourceiv(const ALsource *Source, ALCcontext *Context, ALenum na
if((err=GetSourcedv(Source, Context, name, dvals)) != AL_NO_ERROR)
return err;
values[0] = (ALint)dvals[0];
- values[1] = (ALint)dvals[0];
+ values[1] = (ALint)dvals[1];
break;
case AL_POSITION:
@@ -845,7 +845,7 @@ static ALenum GetSourcei64v(const ALsource *Source, ALCcontext *Context, ALenum
if((err=GetSourcedv(Source, Context, name, dvals)) != AL_NO_ERROR)
return err;
values[0] = (ALint64)dvals[0];
- values[1] = (ALint64)dvals[0];
+ values[1] = (ALint64)dvals[1];
break;
case AL_POSITION: