st/mesa: call is_format_supported() for compressed formats
[mesa.git] / src / mesa / state_tracker / st_atom_constbuf.c
index 5ac81bd4ee27e4ce04612521a5fd4b9abb312a12..a8f2b879d532c511c8d04476ac94c063532c128b 100644 (file)
@@ -84,10 +84,9 @@ void st_upload_constants( struct st_context *st,
       }
 
       /* load Mesa constants into the constant buffer */
-      if (cbuf)
-         st_no_flush_pipe_buffer_write(st, *cbuf,
-                                      0, paramBytes,
-                                      params->ParameterValues);
+      st_no_flush_pipe_buffer_write(st, *cbuf,
+                                   0, paramBytes,
+                                   params->ParameterValues);
 
       st->pipe->set_constant_buffer(st->pipe, shader_type, 0, *cbuf);
    }