diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-04-05 13:57:32 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-04-10 13:36:32 +0300 |
commit | 0811d089b4b88ff553b6514771b1e324025e15ad (patch) | |
tree | 41173633f7068b79fc43837788ab6ae30c7122bf /source/blender/draw/modes | |
parent | fad3fe4ed1930fb0d874b9e01e7de768cbf9d0a1 (diff) |
Draw Manager: Use Texture flag in Framebuffer init.
Diffstat (limited to 'source/blender/draw/modes')
-rw-r--r-- | source/blender/draw/modes/edit_curve_mode.c | 4 | ||||
-rw-r--r-- | source/blender/draw/modes/edit_lattice_mode.c | 4 | ||||
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode.c | 4 | ||||
-rw-r--r-- | source/blender/draw/modes/edit_metaball_mode.c | 4 | ||||
-rw-r--r-- | source/blender/draw/modes/edit_surface_mode.c | 4 | ||||
-rw-r--r-- | source/blender/draw/modes/edit_text_mode.c | 4 | ||||
-rw-r--r-- | source/blender/draw/modes/object_mode.c | 6 | ||||
-rw-r--r-- | source/blender/draw/modes/paint_texture_mode.c | 4 | ||||
-rw-r--r-- | source/blender/draw/modes/paint_vertex_mode.c | 4 | ||||
-rw-r--r-- | source/blender/draw/modes/paint_weight_mode.c | 4 | ||||
-rw-r--r-- | source/blender/draw/modes/particle_mode.c | 4 | ||||
-rw-r--r-- | source/blender/draw/modes/pose_mode.c | 4 | ||||
-rw-r--r-- | source/blender/draw/modes/sculpt_mode.c | 4 |
13 files changed, 27 insertions, 27 deletions
diff --git a/source/blender/draw/modes/edit_curve_mode.c b/source/blender/draw/modes/edit_curve_mode.c index d70db64d946..5c60df270f9 100644 --- a/source/blender/draw/modes/edit_curve_mode.c +++ b/source/blender/draw/modes/edit_curve_mode.c @@ -123,8 +123,8 @@ static void EDIT_CURVE_engine_init(void *vedata) /* Init Framebuffers like this: order is attachment order (for color texs) */ /* - * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, - * {&txl->color, DRW_BUF_RGBA_8}}; + * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24, 0}, + * {&txl->color, DRW_BUF_RGBA_8, DRW_TEX_FILTER}}; */ /* DRW_framebuffer_init takes care of checking if diff --git a/source/blender/draw/modes/edit_lattice_mode.c b/source/blender/draw/modes/edit_lattice_mode.c index 79d43c73378..ecb3844547c 100644 --- a/source/blender/draw/modes/edit_lattice_mode.c +++ b/source/blender/draw/modes/edit_lattice_mode.c @@ -121,8 +121,8 @@ static void EDIT_LATTICE_engine_init(void *vedata) /* Init Framebuffers like this: order is attachment order (for color texs) */ /* - * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, - * {&txl->color, DRW_BUF_RGBA_8}}; + * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24, 0}, + * {&txl->color, DRW_BUF_RGBA_8, DRW_TEX_FILTER}}; */ /* DRW_framebuffer_init takes care of checking if diff --git a/source/blender/draw/modes/edit_mesh_mode.c b/source/blender/draw/modes/edit_mesh_mode.c index 2991d212efa..dc5c109757b 100644 --- a/source/blender/draw/modes/edit_mesh_mode.c +++ b/source/blender/draw/modes/edit_mesh_mode.c @@ -135,8 +135,8 @@ static void EDIT_MESH_engine_init(void *vedata) float *viewport_size = DRW_viewport_size_get(); - DRWFboTexture tex[2] = {{&txl->occlude_wire_depth_tx, DRW_BUF_DEPTH_24}, - {&txl->occlude_wire_color_tx, DRW_BUF_RGBA_8}}; + DRWFboTexture tex[2] = {{&txl->occlude_wire_depth_tx, DRW_BUF_DEPTH_24, 0}, + {&txl->occlude_wire_color_tx, DRW_BUF_RGBA_8, DRW_TEX_FILTER}}; DRW_framebuffer_init(&fbl->occlude_wire_fb, (int)viewport_size[0], (int)viewport_size[1], tex, 2); diff --git a/source/blender/draw/modes/edit_metaball_mode.c b/source/blender/draw/modes/edit_metaball_mode.c index 098dca7ac38..989f1350f9d 100644 --- a/source/blender/draw/modes/edit_metaball_mode.c +++ b/source/blender/draw/modes/edit_metaball_mode.c @@ -121,8 +121,8 @@ static void EDIT_METABALL_engine_init(void *vedata) /* Init Framebuffers like this: order is attachment order (for color texs) */ /* - * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, - * {&txl->color, DRW_BUF_RGBA_8}}; + * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24, 0}, + * {&txl->color, DRW_BUF_RGBA_8, DRW_TEX_FILTER}}; */ /* DRW_framebuffer_init takes care of checking if diff --git a/source/blender/draw/modes/edit_surface_mode.c b/source/blender/draw/modes/edit_surface_mode.c index fcae505a673..eb6673a52ba 100644 --- a/source/blender/draw/modes/edit_surface_mode.c +++ b/source/blender/draw/modes/edit_surface_mode.c @@ -121,8 +121,8 @@ static void EDIT_SURFACE_engine_init(void *vedata) /* Init Framebuffers like this: order is attachment order (for color texs) */ /* - * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, - * {&txl->color, DRW_BUF_RGBA_8}}; + * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24, 0}, + * {&txl->color, DRW_BUF_RGBA_8, DRW_TEX_FILTER}}; */ /* DRW_framebuffer_init takes care of checking if diff --git a/source/blender/draw/modes/edit_text_mode.c b/source/blender/draw/modes/edit_text_mode.c index 2a1b0d4e4ae..5fd14c04240 100644 --- a/source/blender/draw/modes/edit_text_mode.c +++ b/source/blender/draw/modes/edit_text_mode.c @@ -121,8 +121,8 @@ static void EDIT_TEXT_engine_init(void *vedata) /* Init Framebuffers like this: order is attachment order (for color texs) */ /* - * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, - * {&txl->color, DRW_BUF_RGBA_8}}; + * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24, 0}, + * {&txl->color, DRW_BUF_RGBA_8, DRW_TEX_FILTER}}; */ /* DRW_framebuffer_init takes care of checking if diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c index 5a9582bd319..5588a8075fe 100644 --- a/source/blender/draw/modes/object_mode.c +++ b/source/blender/draw/modes/object_mode.c @@ -196,13 +196,13 @@ static void OBJECT_engine_init(void *vedata) float *viewport_size = DRW_viewport_size_get(); - DRWFboTexture tex[2] = {{&txl->outlines_depth_tx, DRW_BUF_DEPTH_24}, - {&txl->outlines_color_tx, DRW_BUF_RGBA_8}}; + DRWFboTexture tex[2] = {{&txl->outlines_depth_tx, DRW_BUF_DEPTH_24, 0}, + {&txl->outlines_color_tx, DRW_BUF_RGBA_8, DRW_TEX_FILTER}}; DRW_framebuffer_init(&fbl->outlines, (int)viewport_size[0], (int)viewport_size[1], tex, 2); - DRWFboTexture blur_tex = {&txl->outlines_blur_tx, DRW_BUF_RGBA_8}; + DRWFboTexture blur_tex = {&txl->outlines_blur_tx, DRW_BUF_RGBA_8, DRW_TEX_FILTER}; DRW_framebuffer_init(&fbl->blur, (int)viewport_size[0], (int)viewport_size[1], &blur_tex, 1); diff --git a/source/blender/draw/modes/paint_texture_mode.c b/source/blender/draw/modes/paint_texture_mode.c index 9d620e0ce25..4476ed69b75 100644 --- a/source/blender/draw/modes/paint_texture_mode.c +++ b/source/blender/draw/modes/paint_texture_mode.c @@ -121,8 +121,8 @@ static void PAINT_TEXTURE_engine_init(void *vedata) /* Init Framebuffers like this: order is attachment order (for color texs) */ /* - * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, - * {&txl->color, DRW_BUF_RGBA_8}}; + * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24, 0}, + * {&txl->color, DRW_BUF_RGBA_8, DRW_TEX_FILTER}}; */ /* DRW_framebuffer_init takes care of checking if diff --git a/source/blender/draw/modes/paint_vertex_mode.c b/source/blender/draw/modes/paint_vertex_mode.c index b3b32a4d6e9..6bb8cc38488 100644 --- a/source/blender/draw/modes/paint_vertex_mode.c +++ b/source/blender/draw/modes/paint_vertex_mode.c @@ -121,8 +121,8 @@ static void PAINT_VERTEX_engine_init(void *vedata) /* Init Framebuffers like this: order is attachment order (for color texs) */ /* - * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, - * {&txl->color, DRW_BUF_RGBA_8}}; + * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24, 0}, + * {&txl->color, DRW_BUF_RGBA_8, DRW_TEX_FILTER}}; */ /* DRW_framebuffer_init takes care of checking if diff --git a/source/blender/draw/modes/paint_weight_mode.c b/source/blender/draw/modes/paint_weight_mode.c index 2d189e07fd2..72251e18067 100644 --- a/source/blender/draw/modes/paint_weight_mode.c +++ b/source/blender/draw/modes/paint_weight_mode.c @@ -121,8 +121,8 @@ static void PAINT_WEIGHT_engine_init(void *vedata) /* Init Framebuffers like this: order is attachment order (for color texs) */ /* - * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, - * {&txl->color, DRW_BUF_RGBA_8}}; + * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24, 0}, + * {&txl->color, DRW_BUF_RGBA_8, DRW_TEX_FILTER}}; */ /* DRW_framebuffer_init takes care of checking if diff --git a/source/blender/draw/modes/particle_mode.c b/source/blender/draw/modes/particle_mode.c index aab9c41a233..611f08e8abf 100644 --- a/source/blender/draw/modes/particle_mode.c +++ b/source/blender/draw/modes/particle_mode.c @@ -115,8 +115,8 @@ static void PARTICLE_engine_init(void *vedata) /* Init Framebuffers like this: order is attachment order (for color texs) */ /* - * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, - * {&txl->color, DRW_BUF_RGBA_8}}; + * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24, 0}, + * {&txl->color, DRW_BUF_RGBA_8, DRW_TEX_FILTER}}; */ /* DRW_framebuffer_init takes care of checking if diff --git a/source/blender/draw/modes/pose_mode.c b/source/blender/draw/modes/pose_mode.c index 93514701010..fc8dc4090f6 100644 --- a/source/blender/draw/modes/pose_mode.c +++ b/source/blender/draw/modes/pose_mode.c @@ -115,8 +115,8 @@ static void POSE_engine_init(void *vedata) /* Init Framebuffers like this: order is attachment order (for color texs) */ /* - * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, - * {&txl->color, DRW_BUF_RGBA_8}}; + * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24, 0}, + * {&txl->color, DRW_BUF_RGBA_8, DRW_TEX_FILTER}}; */ /* DRW_framebuffer_init takes care of checking if diff --git a/source/blender/draw/modes/sculpt_mode.c b/source/blender/draw/modes/sculpt_mode.c index 4b500c4d6fd..c21140e46d3 100644 --- a/source/blender/draw/modes/sculpt_mode.c +++ b/source/blender/draw/modes/sculpt_mode.c @@ -115,8 +115,8 @@ static void SCULPT_engine_init(void *vedata) /* Init Framebuffers like this: order is attachment order (for color texs) */ /* - * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, - * {&txl->color, DRW_BUF_RGBA_8}}; + * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24, 0}, + * {&txl->color, DRW_BUF_RGBA_8, DRW_TEX_FILTER}}; */ /* DRW_framebuffer_init takes care of checking if |