From 1b94d45ffa1f26d3e22751e4da452f925bc34b0f Mon Sep 17 00:00:00 2001 From: AnotherCommander Date: Sun, 6 Oct 2024 01:34:09 +0300 Subject: [PATCH] Windows port: Include OpenGL pixel format index in log. --- src/SDL/MyOpenGLView.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SDL/MyOpenGLView.m b/src/SDL/MyOpenGLView.m index 73d0d90fa..381756ec9 100644 --- a/src/SDL/MyOpenGLView.m +++ b/src/SDL/MyOpenGLView.m @@ -378,6 +378,8 @@ - (id) init #if OOLITE_WINDOWS SDL_GL_GetAttribute(SDL_GL_PIXEL_TYPE_FLOAT, &testAttrib); OOLog(@"display.initGL", @"Pixel type is float : %d", testAttrib); + + OOLog(@"display.initGL", @"Pixel format index: %d", GetPixelFormat(GetDC(SDL_Window))); #endif // Verify V-sync successfully set - report it if not