i915: Remove separate stencil code.
[mesa.git] / src / mesa / drivers / dri / i915 / intel_tex_image.c
index c5754c4572ea4a429d57d22ece4a9649eeeb1ce2..c6f3e903af90154ec1187e2730414ff3e27bdabb 100644 (file)
@@ -367,14 +367,6 @@ intel_image_target_texture_2d(struct gl_context *ctx, GLenum target,
    if (image == NULL)
       return;
 
-   /* Disallow depth/stencil textures: we don't have a way to pass the
-    * separate stencil miptree of a GL_DEPTH_STENCIL texture through.
-    */
-   if (image->has_depthstencil) {
-      _mesa_error(ctx, GL_INVALID_OPERATION, __func__);
-      return;
-   }
-
    intel_set_texture_image_region(ctx, texImage, image->region,
                                  target, image->internal_format,
                                   image->format, image->offset,