llvmpipe: Fix llvmpipe_create_gs_state.
Revert unintended behaviour change from commit
b995a010e6.
Tested-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
@@ -60,9 +60,11 @@ llvmpipe_create_gs_state(struct pipe_context *pipe,
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user