GPU: Print opengl infos if using --debug-gpu-force-workarounds
authorClément Foucault <foucault.clem@gmail.com>
Wed, 5 Dec 2018 03:03:40 +0000 (04:03 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 5 Dec 2018 03:03:40 +0000 (04:03 +0100)
source/blender/gpu/intern/gpu_extensions.c

index 2309c6dc00936beae7cb0e7242fcae2a7e2f191f..8d2fbb4fd73a442c878005e26383290ed0592cc9 100644 (file)
@@ -344,6 +344,12 @@ void gpu_extensions_init(void)
        gpu_detect_mip_render_workaround();
 
        if (G.debug & G_DEBUG_GPU_FORCE_WORKAROUNDS) {
+               printf("\n");
+               printf("GPU: Bypassing workaround detection.\n");
+               printf("GPU: OpenGL indentification strings\n");
+               printf("GPU: vendor: %s\n", vendor);
+               printf("GPU: renderer: %s\n", renderer);
+               printf("GPU: version: %s\n\n", version);
                GG.mip_render_workaround = true;
                GG.depth_blitting_workaround = true;
                GG.unused_fb_slot_workaround = true;