#ifdef _EGL_BUILT_IN_DRIVER_HAIKU
{ "egl_haiku", _eglBuiltInDriverHaiku },
#endif
- { NULL, NULL }
};
/**
if (env) {
EGLint i;
- for (i = 0; _eglBuiltInDrivers[i].name; i++) {
+ for (i = 0; i < ARRAY_SIZE(_eglBuiltInDrivers); i++) {
if (!strcmp(_eglBuiltInDrivers[i].name, env)) {
_EGLModule *mod = _eglAddModule(env);
if (mod)
_EGLModule *mod;
EGLint i;
- for (i = 0; _eglBuiltInDrivers[i].name; i++) {
+ for (i = 0; i < ARRAY_SIZE(_eglBuiltInDrivers); i++) {
mod = _eglAddModule(_eglBuiltInDrivers[i].name);
if (mod)
mod->BuiltIn = _eglBuiltInDrivers[i].main;