Skip to content

Commit f98d4ab

Browse files
committed
fix(gl): use GL_NUM_EXTENSIONS constant instead of magic value
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
1 parent 2733dea commit f98d4ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/generator/c/templates/source.c.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static int gloam_{{ fs.spec_name }}_get_extensions_{{ api }}({{ u.ctx_arg(', ')
181181
if (context->GetStringi != NULL && context->GetIntegerv != NULL) {
182182
GLint n = 0;
183183
uint32_t i;
184-
context->GetIntegerv(0x821D /* GL_NUM_EXTENSIONS */, &n);
184+
context->GetIntegerv(GL_NUM_EXTENSIONS, &n);
185185
num_exts = (uint32_t)n;
186186
if (num_exts > 0) {
187187
exts = (uint64_t *)calloc(num_exts, sizeof(uint64_t));

0 commit comments

Comments
 (0)