Original Post
Hi, How do I unset stream source which is no longer needed? I thought it is done by passing NULL as pointer to vertex buffer in SetStreamSource, but this does not work. Debug runtime (9.0c) reports an error ('Stream 5 size is too small'), although SetStreamSource for stream 5 has been set to NULL (and vertex shader does not declare components from that stream). Even more weird, calling GetStreamSource() having called SetStreamSource( 5, NULL, 0, 0 ) returns pointer to vertex buffer == NULL, but stride == 12! I tried looking up documentation, but I failed to find how to unset stream source in DX9.0 help. DX8.1 SDK help tells that application should pass NULL to SetStreamSource when 'vertex buffer is no longer needed', but DX9.0 documentation tells absolutely nothing about that. Thanks in advance. Cheers, RCL