diff options
| author | onelin <oscar@nelin.dk> | 2026-03-15 20:01:01 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2026-03-15 21:10:12 +0000 |
| commit | 2bacfe74bf35ae725820da7155e8f3e85e92c888 (patch) | |
| tree | 5c7d1d69d13d22e8be5f563de8bc5937b1f79421 /src/gl.c | |
| parent | 88dbf8ba97f6fad19fbf73aaafb88c179b5ff05d (diff) | |
Add special buffer types
Diffstat (limited to 'src/gl.c')
| -rw-r--r-- | src/gl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
