diff --git a/src/shader.cpp b/src/shader.cpp index a54fdd7..0660be7 100644 --- a/src/shader.cpp +++ b/src/shader.cpp @@ -446,10 +446,7 @@ initCTXSizes(GLContext* gl_ctx) gl_ctx->max_fragment_blocks); printf("GL_MAX_UNIFORM_BLOCK_SIZE: %d\n", gl_ctx->max_ublock_size); - - GLint max_vertex_attribs = 0; - glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &max_vertex_attribs); - printf("GL_MAX_VERTEX_ATTRIBS: %d\n", max_vertex_attribs); + printf("GL_MAX_VERTEX_ATTRIBS: %d\n", gl_ctx->max_vertex_attribs); #endif } } diff --git a/src/shader.h b/src/shader.h index f615f62..ce8daee 100644 --- a/src/shader.h +++ b/src/shader.h @@ -9,6 +9,7 @@ #include "util.h" +// TODO: rename structures to consistent style struct gl_uniform { // NOTE: would be nice to use idx as the location parameter because it seems @@ -89,6 +90,7 @@ struct GLContext GLint max_vertex_blocks; GLint max_fragment_blocks; GLint max_ublock_size; + GLint max_vertex_attribs; u32 max_ubos; u32 num_ubos;