From bfed33aa777f21c08468b8298a8712753fec815c Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Fri, 7 Apr 2017 02:47:15 -0400 Subject: [PATCH] libobs-opengl: Log OpenGL version on all systems This commit logs the OpenGL version on all operating systems and brings the OpenGL subsystem's initialization logging more in line with the D3D11 logging to make logs more uniform. --- libobs-opengl/gl-subsystem.c | 5 +++++ libobs-opengl/gl-x11.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libobs-opengl/gl-subsystem.c b/libobs-opengl/gl-subsystem.c index 32b99f0f0..97fcd261c 100644 --- a/libobs-opengl/gl-subsystem.c +++ b/libobs-opengl/gl-subsystem.c @@ -207,6 +207,9 @@ int device_create(gs_device_t **p_device, uint32_t adapter) struct gs_device *device = bzalloc(sizeof(struct gs_device)); int errorcode = GS_ERROR_FAIL; + blog(LOG_INFO, "---------------------------------"); + blog(LOG_INFO, "Initializing OpenGL..."); + device->plat = gl_platform_create(device, adapter); if (!device->plat) goto fail; @@ -215,6 +218,8 @@ int device_create(gs_device_t **p_device, uint32_t adapter) errorcode = GS_ERROR_NOT_SUPPORTED; goto fail; } + + blog(LOG_INFO, "OpenGL version: %s", glGetString(GL_VERSION)); gl_enable(GL_CULL_FACE); diff --git a/libobs-opengl/gl-x11.c b/libobs-opengl/gl-x11.c index e53279d58..058db976c 100644 --- a/libobs-opengl/gl-x11.c +++ b/libobs-opengl/gl-x11.c @@ -366,8 +366,6 @@ extern struct gl_platform *gl_platform_create(gs_device_t *device, goto fail_load_gl; } - blog(LOG_INFO, "OpenGL version: %s\n", glGetString(GL_VERSION)); - goto success; fail_make_current: