From 97c978dc34ee6ed6fe6ff52faba6fe3631572ea1 Mon Sep 17 00:00:00 2001 From: "jinhyung.jo" Date: Fri, 10 Jul 2015 16:25:44 +0900 Subject: VIGS: Inform the GL version currently used. It output only the logs when using the GL backend. Change-Id: I570e57004269b36beec5e034030bc2ef059638e6 Signed-off-by: Jinhyung Jo --- hw/vigs/vigs_gl_backend.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hw/vigs') diff --git a/hw/vigs/vigs_gl_backend.c b/hw/vigs/vigs_gl_backend.c index d7b431be3b..ab14baaa24 100644 --- a/hw/vigs/vigs_gl_backend.c +++ b/hw/vigs/vigs_gl_backend.c @@ -2568,6 +2568,13 @@ bool vigs_gl_backend_init(struct vigs_gl_backend *gl_backend) gl_backend->BindVertexArray(gl_backend->vao); } + VIGS_LOG_INFO("Current GL_VENDOR = %s", + (const char *)gl_backend->GetString(GL_VENDOR)); + VIGS_LOG_INFO("Current GL_RENDERER = %s", + (const char *)gl_backend->GetString(GL_RENDERER)); + VIGS_LOG_INFO("Current GL_VERSION = %s", + (const char *)gl_backend->GetString(GL_VERSION)); + gl_backend->tex_prog_vs_id = vigs_gl_create_shader(gl_backend, (gl_backend->is_gl_2 ? g_vs_tex_source_gl2 : g_vs_tex_source_gl3), GL_VERTEX_SHADER); -- cgit v1.2.3