From b66501b4fd9c392e0f971ea356b27eb71c9c9e79 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Mon, 19 Jan 2015 12:36:52 +0100 Subject: glamor: do not check for gl errors in glamor_build_program According to Eric Anholt the check for glGetError is not needed here. Because a opengl error might be set before this function is called keeping the check could result in glamor_build_program returning failure when building the shader succeeded. Signed-off-by: Maarten Lankhorst Signed-off-by: Eric Anholt Reviewed-by: Eric Anholt --- glamor/glamor_program.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'glamor') diff --git a/glamor/glamor_program.c b/glamor/glamor_program.c index 1d0328f2b..3207aaf15 100644 --- a/glamor/glamor_program.c +++ b/glamor/glamor_program.c @@ -343,9 +343,6 @@ glamor_build_program(ScreenPtr screen, prog->dash_uniform = glamor_get_uniform(prog, glamor_program_location_dash, "dash"); prog->dash_length_uniform = glamor_get_uniform(prog, glamor_program_location_dash, "dash_length"); - if (glGetError() != GL_NO_ERROR) - goto fail; - free(version_string); free(fs_vars); free(vs_vars); -- cgit v1.2.3