From 79d4c76c9f4f956eebfa52f880ac4d1bcb4173c1 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sat, 24 Sep 2022 01:30:10 +0200 Subject: [PATCH] log core context --- src/render_ogl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/render_ogl.c b/src/render_ogl.c index 377d434..4cf30ec 100644 --- a/src/render_ogl.c +++ b/src/render_ogl.c @@ -94,6 +94,16 @@ static HGLRC ogl_create_core_context(HDC hdc) { xwglDeleteContext(g_ogl.context); oglu_init(); + +#if _DEBUG + TRACE("+--OpenGL Core-----------------------------------\n"); + TRACE("| GL_VERSION: %s\n", glGetString(GL_VERSION)); + TRACE("| GL_VENDOR: %s\n", glGetString(GL_VENDOR)); + TRACE("| GL_RENDERER: %s\n", glGetString(GL_RENDERER)); + TRACE("| GL_SHADING_LANGUAGE_VERSION: %s\n", glGetString(GL_SHADING_LANGUAGE_VERSION)); + TRACE("+------------------------------------------------\n"); +#endif + return context; } else if (context)