aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-23 14:33:30 -0800
committerChris Robinson <[email protected]>2018-01-23 14:33:30 -0800
commit2ac0adaebbc9b7378f1ec85d7495a044c7580239 (patch)
tree515d37223d3214e334ab45c3423922e586be1dfb /Alc
parent4ebb97bf737713b07642266ab54055f13dbd9833 (diff)
Use a new proper buffer function with a flags parameter
Rather than hackily combining bit flags with the format, to increase the number of potential flags. alBufferData now behaves as if calling alBufferStorageSOFT with a flags value of 0.
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index dbdc2986..0d8bbe86 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -283,8 +283,10 @@ static const struct {
DECL(alGetStringiSOFT),
+ DECL(alBufferStorageSOFT),
DECL(alMapBufferSOFT),
DECL(alUnmapBufferSOFT),
+ DECL(alFlushMappedBufferSOFT),
};
#undef DECL
@@ -649,6 +651,8 @@ static const struct {
DECL(AL_MAP_READ_BIT_SOFT),
DECL(AL_MAP_WRITE_BIT_SOFT),
+ DECL(AL_MAP_PERSISTENT_BIT_SOFT),
+ DECL(AL_PRESERVE_DATA_BIT_SOFT),
};
#undef DECL