From 799126df0ef03548728080e2a4723394f63e5caf Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 18 Mar 2010 19:32:03 -0700 Subject: Use a better method to derive the offset from the data pointer --- OpenAL32/alBuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index cd1886df..cbc10be5 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -285,7 +285,7 @@ ALAPI ALvoid ALAPIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid *d return; } - offset = (ALintptrEXT)data; + offset = (const ALubyte*)data - (ALubyte*)NULL; data = Context->SampleSource->data + offset; } @@ -534,7 +534,7 @@ ALvoid ALAPIENTRY alBufferSubDataEXT(ALuint buffer,ALenum format,const ALvoid *d return; } - offset = (ALintptrEXT)data; + offset = (const ALubyte*)data - (ALubyte*)NULL; data = Context->SampleSource->data + offset; } -- cgit v1.2.3