mirror of https://github.com/encounter/SDL.git
QNX: use SDL_malloc
This commit is contained in:
parent
e72beeb2a0
commit
10ffcbb115
|
@ -85,7 +85,7 @@ glGetConfig(EGLConfig *pconf, int *pformat)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Allocate enough memory for all configurations.
|
// Allocate enough memory for all configurations.
|
||||||
egl_configs = malloc(egl_num_configs * sizeof(*egl_configs));
|
egl_configs = SDL_malloc(egl_num_configs * sizeof(*egl_configs));
|
||||||
if (egl_configs == NULL) {
|
if (egl_configs == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ glGetConfig(EGLConfig *pconf, int *pformat)
|
||||||
rc = eglGetConfigs(egl_disp, egl_configs, egl_num_configs,
|
rc = eglGetConfigs(egl_disp, egl_configs, egl_num_configs,
|
||||||
&egl_num_configs);
|
&egl_num_configs);
|
||||||
if (rc != EGL_TRUE) {
|
if (rc != EGL_TRUE) {
|
||||||
free(egl_configs);
|
SDL_free(egl_configs);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ glGetConfig(EGLConfig *pconf, int *pformat)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(egl_configs);
|
SDL_free(egl_configs);
|
||||||
*pconf = egl_conf;
|
*pconf = egl_conf;
|
||||||
*pformat = chooseFormat(egl_conf);
|
*pformat = chooseFormat(egl_conf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue