GPU_upload_dxt_texture failed to compile if WITH_DDS was not defined
authorJason Wilkins <Jason.A.Wilkins@gmail.com>
Sat, 30 Jun 2012 10:31:25 +0000 (10:31 +0000)
committerJason Wilkins <Jason.A.Wilkins@gmail.com>
Sat, 30 Jun 2012 10:31:25 +0000 (10:31 +0000)
source/blender/gpu/intern/gpu_draw.c

index 1e261e10ed6c6e88e6cedc084af85d6d0fe9bad2..04764b0731536d52e1b4719081bcf72048d3e4e3 100644 (file)
@@ -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)