f18e537451
Cleanup: GPU: Use explicit clear value in GPU_clear* commands
...
This replace `GPU_clear()` by `GPU_clear_color()` and `GPU_clear_depth()`.
Since we always set the clear value before clearing, it is unecessary
to track the clear color state.
Moreover, it makes it clearer what we clear the framebuffer to.
2020-08-23 12:04:24 +02:00
846cac94db
GPUFramebuffer: Use GPUState to temporary change write mask in clear fn
...
This avoid breaking sync of the state object. Also avoid more hazard.
2020-08-23 12:04:24 +02:00
e5796233c7
GPUState: Use GPU_viewport to set viewport state in GPU_framebuffer
...
also fix a small issue in GPU_texture_clear.
2020-08-18 21:30:11 +02:00
536c2e0ec9
GPUState: Only apply state before drawing
2020-08-18 21:30:10 +02:00
d10f000322
GPUState: Remove gpuPushAttr/gpuPopAttr
...
And use manual save/restore mechanism.
The stack method is not used so much to be considered useful.
2020-08-18 21:30:10 +02:00
2e908156d0
Fix T77564: VSE (and compositor background) lost stereoscopy preview
...
Issue introduced on fe045b2b77 .
Since the stereoscopy compositing (anaglyph, ...) is only done for
viewports the VSE preview and compositor need to use viewports.
Reviewed by: dfelinto
Differential Revision: https://developer.blender.org/D8472
2020-08-18 15:39:27 +02:00
f1b1a0745f
Cleanup: GPU: Change gpu_context_private.h to C++ only header
2020-08-08 03:05:39 +02:00
c889d93c80
Cleanup: GPU, Clang-Tidy else-after-return fixes
...
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/gpu` module.
No functional changes.
2020-08-07 13:38:06 +02:00
848cbe889b
Fix T79347 GPU: Segfault starting blender
2020-07-30 19:43:53 +02:00
486c7b87fb
Cleanup: GPU: Remove GPU_draw.h and move fluid gpu function to DRW
2020-07-29 23:21:33 +02:00
dcad6c9db8
Cleanup: correct assert in GPU_offscreen_read_pixels
2020-07-29 10:50:31 +10:00
2c2082cc62
GPU: Fix MSVC compile errors
2020-07-26 23:50:29 +02:00
18cca0e704
Cleanup: GPU: Remove GPU_glew.h outside of GPU module
...
Remove use of GL* constants and types inside the codebase. There is still
a few occurence to get rid of.
2020-07-26 17:29:49 +02:00
b296b68ff2
GPU: Move gpu_framebuffer.c to C++
2020-07-26 17:28:48 +02:00