check for framebuffer completeness, code clean-up
[mesa.git] / src / mesa / main / texcompress_fxt1.c
index 5fc41fa6bc95e1fb0fb320b471f77accb0cea82a..58d4298dd659a90843ea797350d0c83641f94106 100644 (file)
@@ -234,6 +234,7 @@ const struct gl_texture_format _mesa_texformat_rgb_fxt1 = {
    0,                                  /* IntensityBits */
    0,                                  /* IndexBits */
    0,                                  /* DepthBits */
+   0,                                  /* StencilBits */
    0,                                  /* TexelBytes */
    texstore_rgb_fxt1,                  /* StoreTexImageFunc */
    NULL, /*impossible*/                /* FetchTexel1D */
@@ -256,6 +257,7 @@ const struct gl_texture_format _mesa_texformat_rgba_fxt1 = {
    0,                                  /* IntensityBits */
    0,                                  /* IndexBits */
    0,                                  /* DepthBits */
+   0,                                  /* StencilBits */
    0,                                  /* TexelBytes */
    texstore_rgba_fxt1,                 /* StoreTexImageFunc */
    NULL, /*impossible*/                /* FetchTexel1D */
@@ -1657,7 +1659,7 @@ fxt1_decode_1ALPHA (const GLubyte *code, GLint t, GLchan *rgba)
 
       if (t == 3) {
          /* zero */
-         r = g = b = 0;
+         r = g = b = a = 0;
       } else {
          GLuint kk;
          cc = (const GLuint *)code;