From 7706fe3a26579e36c69449bbbae0fd7a45d48d73 Mon Sep 17 00:00:00 2001 From: Roz K Date: Sat, 31 Dec 2022 11:49:47 +0100 Subject: [PATCH] Print max textures layers and max attribs. --- cpp/render/render_opengles.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cpp/render/render_opengles.cpp b/cpp/render/render_opengles.cpp index 792e6c8..7d4795a 100644 --- a/cpp/render/render_opengles.cpp +++ b/cpp/render/render_opengles.cpp @@ -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); }