From bffcebb7116b9468aadbc09cea3a6c4f579ec217 Mon Sep 17 00:00:00 2001 From: Sangjin Kim Date: Tue, 4 Sep 2012 15:43:44 +0900 Subject: [Title] eglBindAPI bug fix. [Type] bug fix [Module] opengl [Priority] [CQ#] [Redmine#] [Problem] Return value of eglBindAPI is not correct. [Cause] Unhandled exception path is exist. [Solution] Inset explicit return path. [TestCase] --- egl_1_4/37BindAPI.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'egl_1_4') diff --git a/egl_1_4/37BindAPI.c b/egl_1_4/37BindAPI.c index e2db5a2..0fede7a 100755 --- a/egl_1_4/37BindAPI.c +++ b/egl_1_4/37BindAPI.c @@ -39,7 +39,7 @@ EGLBoolean EGLAPIENTRY eglBindAPI(EGLenum api) { case EGL_OPENGL_ES_API: case EGL_OPENVG_API: EGLINTER(global).currentAPI = api; - break; + return EGL_TRUE; #else case EGL_OPENGL_ES_API: EGLINTER(global).currentAPI = api; -- cgit v1.2.3