EGLConfig glOnlyConfig;
if (getConfig(&glOnlyConfig, FilterList() << (ConfigRenderableType() & EGL_OPENGL_BIT) << (ConfigRenderableType() ^ EGL_OPENVG_BIT)))
{
- expectTrue(eglBindAPI(EGL_OPENGL_ES_API));
+ expectTrue(eglBindAPI(EGL_OPENVG_API));
expectNoContext(eglCreateContext(display, glOnlyConfig, EGL_NO_CONTEXT, s_emptyAttribList));
expectError(EGL_BAD_CONFIG);
}
EGLConfig es1OnlyConfig;
if (getConfig(&es1OnlyConfig, FilterList() << (ConfigRenderableType() & EGL_OPENGL_ES_BIT) << (ConfigRenderableType() ^ EGL_OPENVG_BIT)))
{
- expectTrue(eglBindAPI(EGL_OPENGL_API));
+ expectTrue(eglBindAPI(EGL_OPENVG_API));
expectNoContext(eglCreateContext(display, es1OnlyConfig, EGL_NO_CONTEXT, s_es1ContextAttribList));
expectError(EGL_BAD_CONFIG);
}
EGLConfig es2OnlyConfig;
if (getConfig(&es2OnlyConfig, FilterList() << (ConfigRenderableType() & EGL_OPENGL_ES2_BIT) << (ConfigRenderableType() ^ EGL_OPENVG_BIT)))
{
- expectTrue(eglBindAPI(EGL_OPENGL_API));
+ expectTrue(eglBindAPI(EGL_OPENVG_API));
expectNoContext(eglCreateContext(display, es2OnlyConfig, EGL_NO_CONTEXT, s_es2ContextAttribList));
expectError(EGL_BAD_CONFIG);
}
log << TestLog::Section("Test3", "EGL_BAD_PARAMETER is generated if buftype is not EGL_OPENVG_IMAGE");
+ log << TestLog::EndSection;
+
expectTrue(eglGetConfigs(display, &anyConfig, 1, &unused));
+ log << TestLog::Section("Test4", "EGL_BAD_PARAMETER is generated if buffer is not valid OpenVG image");
expectNoSurface(eglCreatePbufferFromClientBuffer(display, EGL_OPENVG_IMAGE, (EGLClientBuffer)-1, anyConfig, DE_NULL));
- expectError(EGL_BAD_CONFIG);
+ expectError(EGL_BAD_PARAMETER);
log << TestLog::EndSection;
});
if (getConfig(&windowConfig, FilterList() << (ConfigSurfaceType() & EGL_WINDOW_BIT)))
{
expectNoSurface(eglCreateWindowSurface(display, windowConfig, DE_NULL, s_emptyAttribList));
- expectError(EGL_BAD_NATIVE_PIXMAP);
+ expectError(EGL_BAD_NATIVE_WINDOW);
expectNoSurface(eglCreateWindowSurface(display, windowConfig, (EGLNativeWindowType)-1, s_emptyAttribList));
- expectError(EGL_BAD_NATIVE_PIXMAP);
+ expectError(EGL_BAD_NATIVE_WINDOW);
}
log << TestLog::EndSection;
if (surface)
{
- expectFalse(eglMakeCurrent(display, surface, surface, DE_NULL));
- expectError(EGL_BAD_CONTEXT);
-
expectFalse(eglMakeCurrent(display, surface, surface, (EGLContext)-1));
expectError(EGL_BAD_CONTEXT);
}