Cleanup: quiet warnings without DDS

This commit is contained in:
Campbell Barton 2020-07-27 21:00:21 +10:00
parent 0b04f0e4e6
commit b18c376946
1 changed files with 3 additions and 1 deletions

View File

@ -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
}