diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-03-04 16:18:57 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-03-04 16:27:41 +0300 |
commit | f96fffe0db53145872a3d60bb8f4bd3b24e8d32b (patch) | |
tree | fb725cac052e7e37a0afef124aadb742d4c7999a /source/blender/gpu/intern/gpu_extensions.c | |
parent | 46f1c1b15d80535b8fb914f6a227384866bb2caf (diff) |
Fix/workaround T62167: Random crash when displaying wireframes.
Some old AMD drivers crash when a vbo with stride 1 is used a few times.
I have not found a real solution to this problem. So the solution was to use a vbo with stride 4 (which in theory is less efficient and takes up more memory space).
Diffstat (limited to 'source/blender/gpu/intern/gpu_extensions.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_extensions.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c index b1c8a972980..6fb40b06177 100644 --- a/source/blender/gpu/intern/gpu_extensions.c +++ b/source/blender/gpu/intern/gpu_extensions.c @@ -211,6 +211,12 @@ bool GPU_unused_fb_slot_workaround(void) return GG.unused_fb_slot_workaround; } +bool GPU_crappy_amd_driver(void) +{ + /* Currently are the same drivers with the `unused_fb_slot` problem. */ + return GPU_unused_fb_slot_workaround(); +} + void gpu_extensions_init(void) { /* during 2.8 development each platform has its own OpenGL minimum requirements |