Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-07-27 14:00:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-07-27 14:00:49 +0300
commitb18c376946bc205c5cb35214478862fd0548bf9f (patch)
tree76eca00e2e5598dfd6e4872d1eba771f35910722 /source/blender/gpu/intern/gpu_texture_image.cc
parent0b04f0e4e63ff88e493bedb6bd9ea4fe5b3557ca (diff)
Cleanup: quiet warnings without DDS
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture_image.cc')
-rw-r--r--source/blender/gpu/intern/gpu_texture_image.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_texture_image.cc b/source/blender/gpu/intern/gpu_texture_image.cc
index 97c74c83230..5b53ba0544b 100644
--- a/source/blender/gpu/intern/gpu_texture_image.cc
+++ b/source/blender/gpu/intern/gpu_texture_image.cc
@@ -482,6 +482,8 @@ static uint gpu_texture_create_from_ibuf(Image *ima, ImBuf *ibuf, eGPUTextureTar
gpu_create_gl_tex_compressed(&bindcode, textarget, ima, ibuf);
return bindcode;
}
+#else
+ (void)gpu_create_gl_tex_compressed;
#endif
/* Regular uncompressed texture. */
@@ -1232,7 +1234,7 @@ bool GPU_upload_dxt_texture(ImBuf *ibuf, bool use_srgb, uint *bindcode)
glBindTexture(GL_TEXTURE_2D, 0);
return true;
#else
- UNUSED_VARS(ibuf, use_srgb);
+ UNUSED_VARS(ibuf, use_srgb, bindcode);
return false;
#endif
}