GPUFramebuffer: Fix compiler warning about return value.

This commit is contained in:
Clément Foucault 2018-03-26 17:54:35 +02:00
parent fc348a563e
commit dff7f55cd0
Notes: blender-bot 2023-02-14 06:05:22 +01:00
Referenced by issue #54437, Sequencer preview uses last updated scene
Referenced by issue #54438, Sequencer Scene preivew Color Management is broken
1 changed files with 3 additions and 3 deletions

View File

@ -231,20 +231,20 @@ static void gpu_framebuffer_texture_attach_ex(GPUFrameBuffer *fb, GPUTexture *te
void GPU_framebuffer_texture_attach(GPUFrameBuffer *fb, GPUTexture *tex, int slot, int mip)
{
return gpu_framebuffer_texture_attach_ex(fb, tex, slot, -1, mip);
gpu_framebuffer_texture_attach_ex(fb, tex, slot, -1, mip);
}
void GPU_framebuffer_texture_layer_attach(GPUFrameBuffer *fb, GPUTexture *tex, int slot, int layer, int mip)
{
/* NOTE: We could support 1D ARRAY texture. */
BLI_assert(GPU_texture_target(tex) == GL_TEXTURE_2D_ARRAY);
return gpu_framebuffer_texture_attach_ex(fb, tex, slot, layer, mip);
gpu_framebuffer_texture_attach_ex(fb, tex, slot, layer, mip);
}
void GPU_framebuffer_texture_cubeface_attach(GPUFrameBuffer *fb, GPUTexture *tex, int slot, int face, int mip)
{
BLI_assert(GPU_texture_cube(tex));
return gpu_framebuffer_texture_attach_ex(fb, tex, slot, face, mip);
gpu_framebuffer_texture_attach_ex(fb, tex, slot, face, mip);
}
/* ---------- Detach ----------- */