Print max textures layers and max attribs.

This commit is contained in:
Roz K 2022-12-31 11:49:47 +01:00
parent 43d62948b7
commit 7706fe3a26
Signed by: roz
GPG Key ID: 51FBF4E483E1C822
1 changed files with 10 additions and 0 deletions

View File

@ -55,6 +55,16 @@ void rk_render_initialize(
printf("[GL] version: %s, language: %s\n", version, language);
if (debug) {
GLint max_texture_layers = 0;
glGetIntegerv(GL_MAX_ARRAY_TEXTURE_LAYERS, &max_texture_layers);
printf("[GL] Max texture layers: %d\n", max_texture_layers);
GLint max_vertex_attribs = 0;
glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &max_vertex_attribs);
printf("[GL] Max vertex attribs: %d\n", max_vertex_attribs);
GLint max_vertex_bindings = 0;
glGetIntegerv(GL_MAX_VERTEX_ATTRIB_BINDINGS, &max_vertex_bindings);
printf("[GL] Max vertex bindings: %d\n", max_vertex_bindings);
glDebugMessageCallback(rk_debug_message_callback, nullptr);
glEnable(GL_DEBUG_OUTPUT);
}