diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-04-12 05:10:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-04-12 05:10:01 +0300 |
commit | e78412c9052ba9d839ed5aecc589f800d1d327b0 (patch) | |
tree | e00eba157120fdbce7183486c3c1fa8da1d181a6 /source/blender/draw/engines | |
parent | 95dd478e47523c3667d4a9de275707bc91975e30 (diff) |
Cleanup: use const pointer for view access API
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/clay/clay.c | 4 | ||||
-rw-r--r-- | source/blender/draw/engines/eevee/eevee.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/engines/clay/clay.c b/source/blender/draw/engines/clay/clay.c index 2bed0327064..512ed7dfe73 100644 --- a/source/blender/draw/engines/clay/clay.c +++ b/source/blender/draw/engines/clay/clay.c @@ -340,7 +340,7 @@ static void CLAY_engine_init(void *vedata) } { - float *viewport_size = DRW_viewport_size_get(); + const float *viewport_size = DRW_viewport_size_get(); DRWFboTexture tex = {&txl->depth_dup, DRW_BUF_DEPTH_24, 0}; DRW_framebuffer_init(&fbl->dupli_depth, (int)viewport_size[0], (int)viewport_size[1], @@ -360,7 +360,7 @@ static void CLAY_engine_init(void *vedata) {-1.0f, 1.0f, -1.0f, 1.0f} }; int i; - float *size = DRW_viewport_size_get(); + const float *size = DRW_viewport_size_get(); DRW_get_dfdy_factors(dfdyfacs); diff --git a/source/blender/draw/engines/eevee/eevee.c b/source/blender/draw/engines/eevee/eevee.c index 2013df35deb..3b03d00e882 100644 --- a/source/blender/draw/engines/eevee/eevee.c +++ b/source/blender/draw/engines/eevee/eevee.c @@ -65,7 +65,7 @@ static void EEVEE_engine_init(void *vedata) DRWFboTexture tex = {&txl->color, DRW_BUF_RGBA_16, DRW_TEX_FILTER}; - float *viewport_size = DRW_viewport_size_get(); + const float *viewport_size = DRW_viewport_size_get(); DRW_framebuffer_init(&fbl->main, (int)viewport_size[0], (int)viewport_size[1], &tex, 1); |