diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-02-01 13:04:37 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-02-01 13:04:37 +0300 |
commit | fe555522f1dafebdf1584030fa0bc62c18c57e17 (patch) | |
tree | 54ab95809c99c983df6cdbda0c0136ec9daa0bda /source/blender/gpu/intern/gpu_extensions.c | |
parent | a59841b016f76dea59fb86aa18980447199a1451 (diff) |
GPU type detection tweaks for unix/mac software rendering.
Diffstat (limited to 'source/blender/gpu/intern/gpu_extensions.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_extensions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c index e93dd37db82..3a36cc01d3e 100644 --- a/source/blender/gpu/intern/gpu_extensions.c +++ b/source/blender/gpu/intern/gpu_extensions.c @@ -129,7 +129,7 @@ void GPU_extensions_init() GG.device = GPU_DEVICE_NVIDIA; GG.driver = GPU_DRIVER_OPENSOURCE; } - else if(strcmp(vendor, "Mesa") == 0) { + else if(strstr(vendor, "Mesa")) { GG.device = GPU_DEVICE_SOFTWARE; GG.driver = GPU_DRIVER_SOFTWARE; } @@ -137,7 +137,7 @@ void GPU_extensions_init() GG.device = GPU_DEVICE_SOFTWARE; GG.driver = GPU_DRIVER_SOFTWARE; } - else if(strcmp(renderer, "Apple Software Renderer") == 0) { + else if(strstr(renderer, "Apple Software Renderer")) { GG.device = GPU_DEVICE_SOFTWARE; GG.driver = GPU_DRIVER_SOFTWARE; } |