Skip to content

Commit

Permalink
Log some OpenGL info
Browse files Browse the repository at this point in the history
Useful when debugging.
  • Loading branch information
guillaumechereau committed Nov 3, 2024
1 parent a7f498f commit 1800aa5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/render.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ void render_init()
int i;

LOG_D("render init");
LOG_I("OpenGL version: %s", glGetString(GL_VERSION));
LOG_I("OpenGL renderer: %s", glGetString(GL_RENDERER));

GL(glGenBuffers(1, &g_index_buffer));
GL(glGenBuffers(1, &g_background_array_buffer));

Expand Down

0 comments on commit 1800aa5

Please sign in to comment.