diff options
author | Germano Cavalcante <mano-wii> | 2021-05-14 17:15:00 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-05-14 18:26:40 +0300 |
commit | b11499939c7731e369be37c594142fd16e111ca7 (patch) | |
tree | fa2e40e3ef3b3428b3f535e11312539c0e538d4b /release/scripts/modules/bl_ui_utils | |
parent | 48fa029dd11bb09d4aca8e0a420781e3ec07a3a2 (diff) |
Python GPU: Replace part of the code that uses 'bgl' with 'gpu'
This is part of the process described in T80730.
The aim is to deprecate the bgl module.
Reviewed By: fclem, brecht, campbellbarton
Revision: D11147
Diffstat (limited to 'release/scripts/modules/bl_ui_utils')
-rw-r--r-- | release/scripts/modules/bl_ui_utils/bug_report_url.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/modules/bl_ui_utils/bug_report_url.py b/release/scripts/modules/bl_ui_utils/bug_report_url.py index 5676e0d6815..3fc57467dac 100644 --- a/release/scripts/modules/bl_ui_utils/bug_report_url.py +++ b/release/scripts/modules/bl_ui_utils/bug_report_url.py @@ -21,7 +21,7 @@ def url_prefill_from_blender(addon_info=None): import bpy - import bgl + import gpu import struct import platform import urllib.parse @@ -38,9 +38,9 @@ def url_prefill_from_blender(addon_info=None): ) fh.write( "Graphics card: %s %s %s\n" % ( - bgl.glGetString(bgl.GL_RENDERER), - bgl.glGetString(bgl.GL_VENDOR), - bgl.glGetString(bgl.GL_VERSION), + gpu.platform.renderer_get(), + gpu.platform.vendor_get(), + gpu.platform.version_get(), ) ) fh.write( |