From 3b45ae5a19c467e6358a0568c2316b150a91a261 Mon Sep 17 00:00:00 2001 From: outfrost Date: Tue, 23 Jun 2020 02:26:29 +0200 Subject: [PATCH] Add and move version logging, disable import debug --- src/engine/asset.c | 2 +- src/main.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/engine/asset.c b/src/engine/asset.c index b7d5346..9261b02 100644 --- a/src/engine/asset.c +++ b/src/engine/asset.c @@ -11,7 +11,7 @@ #include "string.h" #include "tga.h" -#define IMPORT_DEBUG_ 1 +#define IMPORT_DEBUG_ 0 static const float smoothingThresholdAngle = TAU / 14.0f; diff --git a/src/main.c b/src/main.c index a4be117..bd2fe9d 100644 --- a/src/main.c +++ b/src/main.c @@ -1,3 +1,4 @@ +#include #include #include @@ -13,6 +14,10 @@ void onGlfwError(int error, const char* description); int main(/*int argc, char** argv*/) { + logInfo("Assimp %u.%u", aiGetVersionMajor(), aiGetVersionMinor()); + logInfo("GLEW %s", (const char*) glewGetString(GLEW_VERSION)); + logInfo("GLFW %s", glfwGetVersionString()); + glfwSetErrorCallback(onGlfwError); if (!glfwInit()) { @@ -42,7 +47,6 @@ int main(/*int argc, char** argv*/) { logError("GLEW init failed: %s", (const char*) glewGetErrorString(glewInitStatus)); return 1; } - logInfo("GLEW %s", (const char*) glewGetString(GLEW_VERSION)); /* if (GLXEW_EXT_swap_control) { Display* display = glXGetCurrentDisplay(); -- 2.44.0