diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-03-26 13:49:33 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-03-26 15:16:01 +0300 |
commit | ab97add5fa125aa8322b4ceacc070d01104f72a5 (patch) | |
tree | 38341c4f6fbfe3da33d180636777f159a6d9131b /source/blender | |
parent | 664eb1936946a077498a17c22576763c664e3186 (diff) |
GL: Fix shader error logging on Apple M1 hardware
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/gpu/opengl/gl_shader_log.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/opengl/gl_shader_log.cc b/source/blender/gpu/opengl/gl_shader_log.cc index 1d922916e4c..64567174d17 100644 --- a/source/blender/gpu/opengl/gl_shader_log.cc +++ b/source/blender/gpu/opengl/gl_shader_log.cc @@ -39,7 +39,8 @@ char *GLLogParser::parse_line(char *log_line, GPULogItem &log_item) if ((log_item.cursor.row != -1) && (log_item.cursor.column != -1)) { if (GPU_type_matches(GPU_DEVICE_NVIDIA, GPU_OS_ANY, GPU_DRIVER_OFFICIAL) || - GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_MAC, GPU_DRIVER_OFFICIAL)) { + GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_MAC, GPU_DRIVER_OFFICIAL) || + GPU_type_matches(GPU_DEVICE_APPLE, GPU_OS_MAC, GPU_DRIVER_OFFICIAL)) { /* 0:line */ log_item.cursor.row = log_item.cursor.column; log_item.cursor.column = -1; |