llvmpipe: don't assert on illegal surface creation.
[mesa.git] / src / gallium / drivers / llvmpipe / lp_state_sampler.c
index 3b31d4ff5d50da51a20dea8beee2d69e71a6602a..7441973bda2308029809b205a17abc499606eb13 100644 (file)
@@ -218,9 +218,8 @@ llvmpipe_create_sampler_view(struct pipe_context *pipe,
     * XXX we REALLY want to see the correct bind flag here but the OpenGL
     * state tracker can't guarantee that at least for texture buffer objects.
     */
-#if 0
-   assert(texture->bind & PIPE_BIND_SAMPLER_VIEW);
-#endif
+   if (!(texture->bind & PIPE_BIND_SAMPLER_VIEW))
+      debug_printf("Illegal sampler view creation without bind flag\n");
 
    if (view) {
       *view = *templ;