diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-05-15 15:29:27 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-05-18 16:27:29 +0300 |
commit | 6ede93bab3ba2dd1a68204eb55697bc1739a32bc (patch) | |
tree | 59ec3ad41deb757ee28442b13e4ae27be969e5af /source/blender/gpu/GPU_state.h | |
parent | 18dd289e1a52c497f70d2638572834978a0c69e2 (diff) |
Cleanup: Put GPU_state_init inside gpu_state.c
Also put glDisable(GL_DITHER) in it since we don't even use it (but is
enabled by default).
Also leave GL_MULTISAMPLE on by default since it has no impact on non-MSAA
framebuffers.
Diffstat (limited to 'source/blender/gpu/GPU_state.h')
-rw-r--r-- | source/blender/gpu/GPU_state.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_state.h b/source/blender/gpu/GPU_state.h index 9ce91d31d69..4daf3f8dba5 100644 --- a/source/blender/gpu/GPU_state.h +++ b/source/blender/gpu/GPU_state.h @@ -40,6 +40,12 @@ typedef enum eGPUFilterFunction { GPU_LINEAR, } eGPUFilterFunction; +/* Initialize + * - sets the default Blender opengl state, if in doubt, check + * the contents of this function + * - this is called when starting Blender, for opengl rendering. */ +void GPU_state_init(void); + void GPU_blend(bool enable); void GPU_blend_set_func(eGPUBlendFunction sfactor, eGPUBlendFunction dfactor); void GPU_blend_set_func_separate(eGPUBlendFunction src_rgb, |