From 2ec728897efed11b3ea4a152719f09d1ca4a1f7e Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Thu, 23 Feb 2023 19:07:35 +0100 Subject: [PATCH] main: print currently used GPU at the start --- src/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ec5de4a..e7089fa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -52,10 +52,8 @@ int main() glfwSetCursorPosCallback(window, mouse_callback); glEnable(GL_DEPTH_TEST); glEnable(GL_CULL_FACE); //GL_BACK GL_CCW by default - - // Create an invisible window for the secondary thread - glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE); - GLFWwindow* chunkmanager_context = glfwCreateWindow(640, 480, "", NULL, NULL); + + std::cout << "Using GPU: " << glGetString(GL_VENDOR) << " " << glGetString(GL_RENDERER) << "\n"; SpaceFilling::initLUT(); chunkmanager::init();