[Bf-blender-cvs] [b18c376946b] master: Cleanup: quiet warnings without DDS

Campbell Barton noreply at git.blender.org
Mon Jul 27 13:02:14 CEST 2020


Commit: b18c376946bc205c5cb35214478862fd0548bf9f
Author: Campbell Barton
Date:   Mon Jul 27 21:00:21 2020 +1000
Branches: master
https://developer.blender.org/rBb18c376946bc205c5cb35214478862fd0548bf9f

Cleanup: quiet warnings without DDS

===================================================================

M	source/blender/gpu/intern/gpu_texture_image.cc

===================================================================

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
 }



More information about the Bf-blender-cvs mailing list