wined3d: Exit early in shader_glsl_init_transform_feedback() if stream output is disabled.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2017-03-29 15:11:06 +02:00 committed by Alexandre Julliard
parent 1ec91f592e
commit d58e44bfeb
1 changed files with 3 additions and 0 deletions

View File

@ -840,6 +840,9 @@ static void shader_glsl_init_transform_feedback(const struct wined3d_context *co
const char **varyings;
char *strings;
if (!so_desc->element_count)
return;
if (!gl_info->supported[ARB_TRANSFORM_FEEDBACK3])
{
FIXME("ARB_transform_feedback3 not supported by OpenGL implementation.\n");