state->no_tokens = !templ->tokens;
memcpy(&state->stream_output, &templ->stream_output, sizeof state->stream_output);
- state->dgs = draw_create_geometry_shader(llvmpipe->draw, templ);
- if (state->dgs == NULL) {
- goto no_dgs;
+ if (templ->tokens) {
+ state->dgs = draw_create_geometry_shader(llvmpipe->draw, templ);
+ if (state->dgs == NULL) {
+ goto no_dgs;
+ }
}
return state;