From 3add91aa35018254a69a7ef81538900e63fb428d Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 2 Oct 2013 01:02:08 -0700 Subject: [PATCH] the cleanup code I was going to add isn't necessary in this function, so just make gl_platform_init function return false --- libobs-opengl/gl-windows.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libobs-opengl/gl-windows.c b/libobs-opengl/gl-windows.c index 4dbff992a..3557c6aa1 100644 --- a/libobs-opengl/gl-windows.c +++ b/libobs-opengl/gl-windows.c @@ -207,16 +207,13 @@ bool gl_platform_init(struct gs_device *device, struct gs_init_data *info) memset(device->plat, 0, sizeof(struct gl_platform)); if (!gl_create_false_context(device->plat, info)) - goto fail; + return false; if (!gl_init_extensions()) - goto fail; + return false; if (!gl_init_pixel_format(device->plat, info)) - goto fail; + return false; return true; - -fail: - return false; }