forked from bartvdbraak/blender
Cleanup: quite old-style-declaration warning, strip trailing space
This commit is contained in:
parent
3bbb39ecc1
commit
0fa36c81d9
@ -86,7 +86,7 @@ void immDrawPixelsTexScaledFullSize(const IMMDrawPixelsTexState *state,
|
|||||||
const float yzoom,
|
const float yzoom,
|
||||||
const float color[4])
|
const float color[4])
|
||||||
{
|
{
|
||||||
const static float white[4] = {1.0f, 1.0f, 1.0f, 1.0f};
|
static const float white[4] = {1.0f, 1.0f, 1.0f, 1.0f};
|
||||||
const float draw_width = img_w * scaleX * xzoom;
|
const float draw_width = img_w * scaleX * xzoom;
|
||||||
const float draw_height = img_h * scaleY * yzoom;
|
const float draw_height = img_h * scaleY * yzoom;
|
||||||
/* Downscaling with regular bilinear interpolation (i.e. #GL_LINEAR) doesn't give good filtering
|
/* Downscaling with regular bilinear interpolation (i.e. #GL_LINEAR) doesn't give good filtering
|
||||||
|
@ -37,4 +37,3 @@ GPU_SHADER_CREATE_INFO(gpu_shader_2D_image_rect_color)
|
|||||||
.vertex_source("gpu_shader_2D_image_rect_vert.glsl")
|
.vertex_source("gpu_shader_2D_image_rect_vert.glsl")
|
||||||
.fragment_source("gpu_shader_image_color_frag.glsl")
|
.fragment_source("gpu_shader_image_color_frag.glsl")
|
||||||
.do_static_compilation(true);
|
.do_static_compilation(true);
|
||||||
|
|
||||||
|
@ -48,4 +48,3 @@ GPU_SHADER_CREATE_INFO(gpu_shader_gpencil_stroke)
|
|||||||
.fragment_source("gpu_shader_gpencil_stroke_frag.glsl")
|
.fragment_source("gpu_shader_gpencil_stroke_frag.glsl")
|
||||||
.typedef_source("GPU_shader_shared.h")
|
.typedef_source("GPU_shader_shared.h")
|
||||||
.do_static_compilation(true);
|
.do_static_compilation(true);
|
||||||
|
|
@ -36,4 +36,3 @@ GPU_SHADER_CREATE_INFO(gpu_shader_instance_varying_color_varying_size)
|
|||||||
.fragment_source("gpu_shader_flat_color_frag.glsl")
|
.fragment_source("gpu_shader_flat_color_frag.glsl")
|
||||||
.additional_info("gpu_srgb_to_framebuffer_space")
|
.additional_info("gpu_srgb_to_framebuffer_space")
|
||||||
.do_static_compilation(true);
|
.do_static_compilation(true);
|
||||||
|
|
@ -44,4 +44,3 @@ GPU_SHADER_CREATE_INFO(gpu_shader_keyframe_shape)
|
|||||||
.vertex_source("gpu_shader_keyframe_shape_vert.glsl")
|
.vertex_source("gpu_shader_keyframe_shape_vert.glsl")
|
||||||
.fragment_source("gpu_shader_keyframe_shape_frag.glsl")
|
.fragment_source("gpu_shader_keyframe_shape_frag.glsl")
|
||||||
.do_static_compilation(true);
|
.do_static_compilation(true);
|
||||||
|
|
@ -43,4 +43,3 @@ GPU_SHADER_CREATE_INFO(gpu_shader_text)
|
|||||||
.fragment_source("gpu_shader_text_frag.glsl")
|
.fragment_source("gpu_shader_text_frag.glsl")
|
||||||
.additional_info("gpu_srgb_to_framebuffer_space")
|
.additional_info("gpu_srgb_to_framebuffer_space")
|
||||||
.do_static_compilation(true);
|
.do_static_compilation(true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user