소스 검색

the cleanup code I was going to add isn't necessary in this function, so just make gl_platform_init function return false

jp9000 12 년 전
부모
커밋
3add91aa35
1개의 변경된 파일3개의 추가작업 그리고 6개의 파일을 삭제
  1. 3 6
      libobs-opengl/gl-windows.c

+ 3 - 6
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;
 }