diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-27 15:15:45 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-27 15:17:37 +0300 |
commit | 0d20207771e76649fcce3766bcfa1634c087caae (patch) | |
tree | 9cbd0eed41b5d7c2e375a205edab542bb53a9b7a /source/blender/gpu/intern/gpu_texture.c | |
parent | 6a05c14a8a24219e43ea82012762e63bd3b2a93f (diff) |
Fix GPU build error after recent commit.
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c index f5b52db1c85..e5073196a52 100644 --- a/source/blender/gpu/intern/gpu_texture.c +++ b/source/blender/gpu/intern/gpu_texture.c @@ -160,6 +160,8 @@ static int gpu_get_component_count(GPUTextureFormat format) /* Definitely not complete, edit according to the gl specification. */ static void gpu_validate_data_format(GPUTextureFormat tex_format, GPUDataFormat data_format) { + (void)data_format; + if (ELEM(tex_format, GPU_DEPTH_COMPONENT24, GPU_DEPTH_COMPONENT16, |