diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-03-26 13:53:24 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-03-26 15:16:01 +0300 |
commit | 23bbc0d7481cefd746cd32bfa8526ecaea9bf71d (patch) | |
tree | 1469b0c8e2153b83c4bc90cf56fc29736e1aa364 /source/blender/draw/intern/draw_common.c | |
parent | 6073b6b874e4b5fa990153dfbaa04dac5d884094 (diff) |
DRW: Port draw_common.c to use shared definition with GLSL
Diffstat (limited to 'source/blender/draw/intern/draw_common.c')
-rw-r--r-- | source/blender/draw/intern/draw_common.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/draw/intern/draw_common.c b/source/blender/draw/intern/draw_common.c index c7edf003346..462ae6f7cf1 100644 --- a/source/blender/draw/intern/draw_common.c +++ b/source/blender/draw/intern/draw_common.c @@ -184,9 +184,10 @@ void DRW_globals_update(void) gb->pixelFac = *DRW_viewport_pixelsize_get(); - copy_v2_v2(gb->sizeViewport, DRW_viewport_size_get()); - copy_v2_v2(gb->sizeViewportInv, gb->sizeViewport); - invert_v2(gb->sizeViewportInv); + /* Deprecated, use drw_view.viewport_size instead */ + copy_v2_v2(&gb->sizeViewport[0], DRW_viewport_size_get()); + copy_v2_v2(&gb->sizeViewport[2], &gb->sizeViewport[0]); + invert_v2(&gb->sizeViewport[2]); /* Color management. */ { |