summaryrefslogtreecommitdiff
path: root/src/gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gl.c')
-rw-r--r--src/gl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gl.c b/src/gl.c
index 9c9e6da..7c630a6 100644
--- a/src/gl.c
+++ b/src/gl.c
@@ -200,7 +200,7 @@ void shaders_delete(Shader* shader, usize shader_len) {
GLenum ShaderBuffer_get_gl_access(u64 flags) {
const ShaderBufferFlag access = ShaderBuffer_get_access_type(flags);
- switch(flags & 7) { // Stored in the first 3 bits
+ switch(ShaderBuffer_get_access_frequency(flags)) { // Stored in the first 3 bits
case ShaderBuffer_AccessFrequency_stream:
switch(access) {
case ShaderBuffer_AccessType_draw: return GL_STREAM_DRAW;