diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-18 20:59:51 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-18 23:41:49 +0300 |
commit | 649b0ccac8b514b471cdeede97b1a2839c2176b9 (patch) | |
tree | c76ff75bb16c3e022d1df201639d407ea531611d /source/blender/gpu/GPU_state.h | |
parent | f17302be6b716ea5bc6b1ddfd09a2cf3b4969e37 (diff) |
GPUImmediate: Add system wide workaround for wide line
This makes wide line supported on MacOS and other implementation that
does not support wide line by default.
This workaround works for all Line types but only if using one of the 5
default shaders.
The workaround is completely isolated and invisible to the outside. It has
no side effect.
Note: This does not affect the GPUBatch drawing.
Diffstat (limited to 'source/blender/gpu/GPU_state.h')
-rw-r--r-- | source/blender/gpu/GPU_state.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_state.h b/source/blender/gpu/GPU_state.h index a857736acd5..04cf7bc54ba 100644 --- a/source/blender/gpu/GPU_state.h +++ b/source/blender/gpu/GPU_state.h @@ -156,6 +156,7 @@ eGPUDepthTest GPU_depth_test_get(void); eGPUWriteMask GPU_write_mask_get(void); uint GPU_stencil_mask_get(void); eGPUStencilTest GPU_stencil_test_get(void); +float GPU_line_width_get(void); void GPU_flush(void); void GPU_finish(void); |