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:
authorJason Wilkins <Jason.A.Wilkins@gmail.com>2012-06-30 14:31:25 +0400
committerJason Wilkins <Jason.A.Wilkins@gmail.com>2012-06-30 14:31:25 +0400
commit5a859c6ba3d646252f5cef6b44b39bf5c13656ea (patch)
tree409ec01daedfc3717c43c0a1beb13a7e9aede7ab /source/blender/gpu
parent35d842427356c99d3d96ccb93a07e0d5382aecfc (diff)
GPU_upload_dxt_texture failed to compile if WITH_DDS was not defined
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c4
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)