Merge branch 'mesa_7_6_branch'
authorBrian Paul <brianp@vmware.com>
Sat, 24 Oct 2009 00:38:43 +0000 (18:38 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 24 Oct 2009 00:38:43 +0000 (18:38 -0600)
src/mesa/main/fbobject.c
src/mesa/main/imports.c

index 85d3d3db997df1d0924ced0723b19f81e5f1be6b..0040099a69fdee388c167273d9e8684761304878 100644 (file)
@@ -1501,18 +1501,6 @@ framebuffer_texture(GLcontext *ctx, const char *caller, GLenum target,
       return;
    }
 
-   if (texObj && attachment == GL_DEPTH_STENCIL_ATTACHMENT) {
-      /* the texture format must be depth+stencil */
-      const struct gl_texture_image *texImg;
-      texImg = texObj->Image[0][texObj->BaseLevel];
-      if (!texImg || texImg->_BaseFormat != GL_DEPTH_STENCIL) {
-         _mesa_error(ctx, GL_INVALID_OPERATION,
-                     "glFramebufferTexture%sEXT(texture is not"
-                     " DEPTH_STENCIL format)", caller);
-         return;
-      }
-   }
-
    FLUSH_CURRENT(ctx, _NEW_BUFFERS);
 
    _glthread_LOCK_MUTEX(fb->Mutex);
index 30fa55997ef0783edc51ff2afff6587eedc8f80b..91d8d156b8f6d411580e89960c28526990be8156 100644 (file)
@@ -934,9 +934,9 @@ _mesa_str_checksum(const char *str)
    unsigned int sum, i;
    const char *c;
    sum = i = 1;
-   for (c = str; *c; c++)
+   for (c = str; *c; c++, i++)
       sum += *c * (i % 100);
-   return sum;
+   return sum + i;
 }