Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-11-02 16:58:49 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-11-02 17:45:13 +0300
commit721a19d2b8a7784c48c753d57dfbf984524a54de (patch)
tree0be919eabfa00b65ad70a5bdea11d9676e31c9cb /source/blender/gpu/GPU_extensions.h
parent00ef0a4d8efc783e93d2e524d3a9d59a0230704f (diff)
GPU: Add safety check for max line width
On some platform does not support line width > 1.0 and can even throw and error. Better check an at least display something rather than no lines at all.
Diffstat (limited to 'source/blender/gpu/GPU_extensions.h')
-rw-r--r--source/blender/gpu/GPU_extensions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_extensions.h b/source/blender/gpu/GPU_extensions.h
index 805023e31df..07d8a5f8c8b 100644
--- a/source/blender/gpu/GPU_extensions.h
+++ b/source/blender/gpu/GPU_extensions.h
@@ -49,6 +49,7 @@ int GPU_max_color_texture_samples(void);
int GPU_max_cube_map_size(void);
int GPU_max_ubo_binds(void);
int GPU_max_ubo_size(void);
+float GPU_max_line_width(void);
int GPU_color_depth(void);
void GPU_get_dfdy_factors(float fac[2]);
bool GPU_mip_render_workaround(void);