diff options
author | Neil Roberts <neil@linux.intel.com> | 2012-08-07 15:11:40 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2012-08-14 18:55:42 +0100 |
commit | 4c1b7c979d09a20cfe994c4a35c68a40adbd04f2 (patch) | |
tree | 84a529e9cbaba84e2220fad958e0cea2b88f9e22 /tests | |
parent | 8e12e40da97099e1ea538e01cf9c6f74027670e1 (diff) | |
download | cogl-4c1b7c979d09a20cfe994c4a35c68a40adbd04f2.tar.gz |
test-gles2-context: Fix error checking for cogl_gles2_context_new
The test was passing NULL as the error argument but then trying to use
the error object if it failed so it would just crash in that case.
Reviewed-by: Robert Bragg <robert@linux.intel.com>
(cherry picked from commit 61cbbb3000fb4001d51999fd05179c620b7e56bf)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/conform/test-gles2-context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/conform/test-gles2-context.c b/tests/conform/test-gles2-context.c index 96fe6539..e6612a94 100644 --- a/tests/conform/test-gles2-context.c +++ b/tests/conform/test-gles2-context.c @@ -159,7 +159,7 @@ create_gles2_context (CoglTexture **offscreen_texture, *pipeline = cogl_pipeline_new (ctx); cogl_pipeline_set_layer_texture (*pipeline, 0, *offscreen_texture); - *gles2_ctx = cogl_gles2_context_new (ctx, NULL); + *gles2_ctx = cogl_gles2_context_new (ctx, &error); if (!*gles2_ctx) g_error ("Failed to create GLES2 context: %s\n", error->message); |