Print max textures layers and max attribs.
This commit is contained in:
parent
43d62948b7
commit
7706fe3a26
@ -55,6 +55,16 @@ void rk_render_initialize(
|
|||||||
printf("[GL] version: %s, language: %s\n", version, language);
|
printf("[GL] version: %s, language: %s\n", version, language);
|
||||||
|
|
||||||
if (debug) {
|
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);
|
glDebugMessageCallback(rk_debug_message_callback, nullptr);
|
||||||
glEnable(GL_DEBUG_OUTPUT);
|
glEnable(GL_DEBUG_OUTPUT);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user