diff options
author | Jason Wilkins <Jason.A.Wilkins@gmail.com> | 2012-06-30 14:31:25 +0400 |
---|---|---|
committer | Jason Wilkins <Jason.A.Wilkins@gmail.com> | 2012-06-30 14:31:25 +0400 |
commit | 5a859c6ba3d646252f5cef6b44b39bf5c13656ea (patch) | |
tree | 409ec01daedfc3717c43c0a1beb13a7e9aede7ab | |
parent | 35d842427356c99d3d96ccb93a07e0d5382aecfc (diff) |
GPU_upload_dxt_texture failed to compile if WITH_DDS was not defined
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index 1e261e10ed6..04764b07315 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -707,6 +707,7 @@ void GPU_create_gl_tex(unsigned int *bind, unsigned int *pix, float * frect, int */ int GPU_upload_dxt_texture(ImBuf *ibuf) { +#if WITH_DDS GLint format, err; int blocksize, height, width, i, size, offset = 0; @@ -747,6 +748,9 @@ int GPU_upload_dxt_texture(ImBuf *ibuf) } return 1; +#else + return 0; +#endif } void GPU_create_gl_tex_compressed(unsigned int *bind, unsigned int *pix, int x, int y, int mipmap, Image *ima, ImBuf *ibuf) |