[cogl/wip/gles2-flip-fbo: 5/6] test-gles2-context: Fix error checking for cogl_gles2_context_new
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/gles2-flip-fbo: 5/6] test-gles2-context: Fix error checking for cogl_gles2_context_new
- Date: Tue, 7 Aug 2012 18:47:53 +0000 (UTC)
commit 9cff243caa0a2ef93333a57507a0c011e1ad2329
Author: Neil Roberts <neil linux intel com>
Date: Tue Aug 7 15:11:40 2012 +0100
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.
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 ff0db16..fdb796f 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 (test_ctx);
cogl_pipeline_set_layer_texture (*pipeline, 0, *offscreen_texture);
- *gles2_ctx = cogl_gles2_context_new (test_ctx, NULL);
+ *gles2_ctx = cogl_gles2_context_new (test_ctx, &error);
if (!*gles2_ctx)
g_error ("Failed to create GLES2 context: %s\n", error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]