Check for shader compilation and linking errors.