Cleanup: make format (clang-format)
This commit is contained in:
@@ -395,7 +395,8 @@ static bool eevee_volume_object_grids_init(Object *ob, ListBase *gpu_grids, DRWS
|
|||||||
* - Grid exists but has zero size or failed to load -> use zero.
|
* - Grid exists but has zero size or failed to load -> use zero.
|
||||||
* - Grid does not exist -> use default value. */
|
* - Grid does not exist -> use default value. */
|
||||||
GPUTexture *grid_tex = (drw_grid) ? drw_grid->texture :
|
GPUTexture *grid_tex = (drw_grid) ? drw_grid->texture :
|
||||||
(volume_grid) ? e_data.dummy_zero :
|
(volume_grid) ?
|
||||||
|
e_data.dummy_zero :
|
||||||
eevee_volume_default_texture(gpu_grid->default_value);
|
eevee_volume_default_texture(gpu_grid->default_value);
|
||||||
|
|
||||||
DRW_shgroup_uniform_texture(grp, gpu_grid->sampler_name, grid_tex);
|
DRW_shgroup_uniform_texture(grp, gpu_grid->sampler_name, grid_tex);
|
||||||
|
@@ -24,8 +24,8 @@
|
|||||||
#include "MEM_guardedalloc.h"
|
#include "MEM_guardedalloc.h"
|
||||||
|
|
||||||
#include "BLI_math.h"
|
#include "BLI_math.h"
|
||||||
#include "BLI_utildefines.h"
|
|
||||||
#include "BLI_string.h"
|
#include "BLI_string.h"
|
||||||
|
#include "BLI_utildefines.h"
|
||||||
|
|
||||||
#include "BLT_translation.h"
|
#include "BLT_translation.h"
|
||||||
|
|
||||||
|
@@ -1522,7 +1522,8 @@ static void *sequencer_OCIO_transform_ibuf(const bContext *C,
|
|||||||
ImBuf *ibuf,
|
ImBuf *ibuf,
|
||||||
bool *r_glsl_used,
|
bool *r_glsl_used,
|
||||||
eGPUTextureFormat *r_format,
|
eGPUTextureFormat *r_format,
|
||||||
eGPUDataFormat *r_data, void **r_buffer_cache_handle)
|
eGPUDataFormat *r_data,
|
||||||
|
void **r_buffer_cache_handle)
|
||||||
{
|
{
|
||||||
void *display_buffer;
|
void *display_buffer;
|
||||||
bool force_fallback = false;
|
bool force_fallback = false;
|
||||||
@@ -1682,7 +1683,8 @@ static void sequencer_draw_display_buffer(const bContext *C,
|
|||||||
data = GPU_DATA_UBYTE;
|
data = GPU_DATA_UBYTE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
display_buffer = sequencer_OCIO_transform_ibuf(C, ibuf, &glsl_used, &format, &data, &buffer_cache_handle);
|
display_buffer = sequencer_OCIO_transform_ibuf(
|
||||||
|
C, ibuf, &glsl_used, &format, &data, &buffer_cache_handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (draw_backdrop) {
|
if (draw_backdrop) {
|
||||||
|
Reference in New Issue
Block a user