diff options
author | Maarten Lankhorst <maarten.lankhorst@ubuntu.com> | 2015-01-19 12:36:52 +0100 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2015-03-24 12:01:38 -0700 |
commit | b66501b4fd9c392e0f971ea356b27eb71c9c9e79 (patch) | |
tree | 028528a24af30e40592e5f882d6c58caa2ac4b45 | |
parent | 7c6f483670770e4e534cafd4e70d0b1490f4cca6 (diff) |
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 <maarten.lankhorst@ubuntu.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
-rw-r--r-- | glamor/glamor_program.c | 3 |
1 files changed, 0 insertions, 3 deletions
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); |